Skip to content

Commit 3686af4

Browse files
authored
ensure 1e8 is interpreted as int
1 parent 4db773d commit 3686af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyjuice/layer/input_layer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ def parse_source(src, get_signature = False):
11071107
lambda str: str.strip(" "),
11081108
filter(lambda arg: arg.split(":")[0].strip(" ") not in sub_fns, fn_args)
11091109
))
1110-
seed_str = f"_{random.randint(0,1e8)}"
1110+
seed_str = f"_{random.randint(0,int(1e8))}"
11111111
new_fn_header = fn_name + seed_str + "(" + ",".join(fn_args) + "):"
11121112
global_key = fn_name.split("def")[1].strip(" ") + seed_str
11131113

@@ -1153,4 +1153,4 @@ def parse_source(src, get_signature = False):
11531153
# Make a pseudo-function from the source code
11541154
new_fn = make_function_from_src(new_src)
11551155

1156-
return FastJITFunction(new_fn)
1156+
return FastJITFunction(new_fn)

0 commit comments

Comments
 (0)