mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Revert "Use 128-bit arithmetic to avoid overflow"
This reverts commit 3b948e0f20.
This commit is contained in:
@@ -2431,7 +2431,7 @@ std::pair<int, metadata> read_input(std::vector<source> &sources, char *fname, i
|
||||
|
||||
double total_tile_count = 0;
|
||||
for (int i = 1; i <= maxzoom; i++) {
|
||||
double tile_count = ceil(area_sum / ((__int128) (1LL << (GLOBAL_DETAIL - i)) * (1LL << (GLOBAL_DETAIL - i))));
|
||||
double tile_count = ceil(area_sum / ((1LL << (GLOBAL_DETAIL - i)) * (1LL << (GLOBAL_DETAIL - i))));
|
||||
total_tile_count += tile_count;
|
||||
|
||||
// 2M tiles is an arbitrary limit, chosen to make tiling jobs
|
||||
|
||||
Reference in New Issue
Block a user