Fix overflow

This commit is contained in:
Erica Fischer
2025-05-05 15:09:55 -07:00
parent 887db65698
commit c6debdcbd7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2592,7 +2592,7 @@ drawvec coalesce_polygon(drawvec const &geom) {
geom1 = coalesce_polygon(geom1);
std::vector<draw> geom2;
geom2.resize(i);
geom2.resize(geom.size() - i);
for (size_t k = i; k < geom.size(); k++) {
geom2[k - i] = geom[k];
}
+1 -1
View File
@@ -2333,7 +2333,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
if (p.clustered > 0) {
serial_val sv, sv2, sv3, sv4;
long long point_count = p.clustered + 1;
char abbrev[20]; // to_string(LLONG_MAX).length() / 1000 + 1;
char abbrev[30];
p.full_keys.push_back(key_pool.pool("clustered"));
sv.type = mvt_bool;