Bug when using @for_range_opt with cint.

This commit is contained in:
Marcel Keller
2021-07-22 00:16:16 +10:00
parent 017401a9ac
commit 284c4841d9

View File

@@ -940,6 +940,7 @@ def map_reduce_single(n_parallel, n_loops, initializer=lambda *x: [],
use_array = True
if not util.is_constant(n_loops):
budget //= 10
n_loops = regint(n_loops)
def decorator(loop_body):
my_n_parallel = n_parallel
if isinstance(n_parallel, int):