direct: update birect.py
This commit is contained in:
parent
af95821dbb
commit
da4d8a171d
|
@ -307,6 +307,7 @@ def birect(
|
|||
|
||||
diagonal_cache, longest_cache = precompute_diagonals_by_length(min_diag)
|
||||
depth_limit = len(diagonal_cache)
|
||||
if depth_limit <= 500: # prevents OverflowError: int too large to convert to float
|
||||
diagonal_cache = precompute_diagonals_by_limit(depth_limit)
|
||||
|
||||
for outer in range(1_000_000 if max_iters is None else max_iters):
|
||||
|
|
Loading…
Reference in New Issue
Block a user