Revert "Fix more overflows"

This reverts commit cc6135dd02.
This commit is contained in:
Erica Fischer
2024-03-18 12:28:19 -07:00
parent ccc49bc870
commit cf63945c37
4 changed files with 15 additions and 22 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 = (long long) rpa->tx << (GLOBAL_DETAIL - rpa->z);
sy = (long long) rpa->ty << (GLOBAL_DETAIL - rpa->z);
sx = rpa->tx << (GLOBAL_DETAIL - rpa->z);
sy = rpa->ty << (GLOBAL_DETAIL - rpa->z);
}
for (size_t i = 0; i < tmp_feature.geometry.size(); i++) {
tmp_feature.geometry[i].x += sx;