Skip to content

Commit 3ae38bb

Browse files
committed
Fix typo pos.second -> pos.size (via @mathisloge) ref #4187
1 parent c6fc956 commit 3ae38bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/input/csv/csv_index_featureset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mapnik::feature_ptr csv_index_featureset::next()
122122
#else
123123
std::fseek(file_.get(), pos.off, SEEK_SET);
124124
std::vector<char> record;
125-
record.resize(pos.second);
125+
record.resize(pos.size);
126126
if (std::fread(record.data(), pos.size, 1, file_.get()) != 1)
127127
{
128128
return mapnik::feature_ptr();

plugins/input/geojson/geojson_index_featureset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ mapnik::feature_ptr geojson_index_featureset::next()
9393
#else
9494
std::fseek(file_.get(), pos.off, SEEK_SET);
9595
std::vector<char> record;
96-
record.resize(pos.second);
96+
record.resize(pos.size);
9797
auto count = std::fread(record.data(), pos.size, 1, file_.get());
9898
auto const* start = record.data();
9999
auto const* end = (count == 1) ? start + record.size() : start;

0 commit comments

Comments
 (0)