<= was in the JS, < was in the python

This commit is contained in:
fscottfoti
2023-01-28 13:19:48 -08:00
parent 701db2dabc
commit 681526a370
2 changed files with 2 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ def tileid_to_zxy(tile_id):
def find_tile(entries, tile_id):
m = 0
n = len(entries) - 1
while m < n:
while m <= n:
k = (n + m) >> 1
c = tile_id - entries[k].tile_id
if c > 0: