Fix more overflows

This commit is contained in:
Erica Fischer
2024-03-18 10:17:18 -07:00
parent 1c97d476c5
commit cc6135dd02
4 changed files with 22 additions and 15 deletions
+2 -2
View File
@@ -1265,8 +1265,8 @@ void *run_prefilter(void *v) {
// Offset from tile coordinates back to world coordinates
unsigned sx = 0, sy = 0;
if (rpa->z != 0) {
sx = rpa->tx << (GLOBAL_DETAIL - rpa->z);
sy = rpa->ty << (GLOBAL_DETAIL - rpa->z);
sx = (long long) rpa->tx << (GLOBAL_DETAIL - rpa->z);
sy = (long long) rpa->ty << (GLOBAL_DETAIL - rpa->z);
}
for (size_t i = 0; i < tmp_feature.geometry.size(); i++) {
tmp_feature.geometry[i].x += sx;