Fix narrowing of index_size (#126)

Fix narrowing of index_size, affecting indexed flatgeobufs with lots of features [#125]
This commit is contained in:
Brandon Liu
2023-08-14 14:06:38 -07:00
committed by GitHub
parent 9e9e21bcc0
commit f00eeb486a
+1 -1
View File
@@ -368,7 +368,7 @@ void parse_flatgeobuf(std::vector<struct serialization_state> *sst, const char *
auto h_geometry_type = header->geometry_type(); auto h_geometry_type = header->geometry_type();
long long feature_sequence_id = -1; long long feature_sequence_id = -1;
int index_size = 0; long long index_size = 0;
if (node_size > 0) { if (node_size > 0) {
if (!quiet) { if (!quiet) {
fprintf(stderr, "detected indexed FlatGeobuf: assigning feature IDs by sequence\n"); fprintf(stderr, "detected indexed FlatGeobuf: assigning feature IDs by sequence\n");