From 284c4841d95318ef3cea537d1aece8ec0f60e035 Mon Sep 17 00:00:00 2001 From: Marcel Keller Date: Thu, 22 Jul 2021 00:16:16 +1000 Subject: [PATCH] Bug when using @for_range_opt with cint. --- Compiler/library.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Compiler/library.py b/Compiler/library.py index a0be07db..2a186f56 100644 --- a/Compiler/library.py +++ b/Compiler/library.py @@ -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):