Skip to content

Commit 3ed921a

Browse files
committed
Reapply "Fix negativity check in codegen" (#59986)
This partially reverts commit f8c7b22.
1 parent f8c7b22 commit 3ed921a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4137,7 +4137,7 @@ static bool emit_builtin_call(jl_codectx_t &ctx, jl_cgval_t *ret, jl_value_t *f,
41374137
if (argv[2].constant) {
41384138
if (!jl_is_long(argv[2].constant))
41394139
return false;
4140-
size_t nel = jl_unbox_long(argv[2].constant);
4140+
auto nel = jl_unbox_long(argv[2].constant);
41414141
if (nel < 0)
41424142
return false;
41434143
*ret = emit_const_len_memorynew(ctx, typ, nel, inst);

0 commit comments

Comments
 (0)