Skip to content

Commit f8c7b22

Browse files
authored
Revert "Fix negativity check in codegen" (#59986)
Reverts #59971, ref #59971 (comment)
1 parent 7795d61 commit f8c7b22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen.cpp

Lines changed: 2 additions & 2 deletions
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-
auto nel = jl_unbox_long(argv[2].constant);
4140+
size_t nel = jl_unbox_long(argv[2].constant);
41414141
if (nel < 0)
41424142
return false;
41434143
*ret = emit_const_len_memorynew(ctx, typ, nel, inst);
@@ -8935,7 +8935,7 @@ static jl_llvm_functions_t
89358935
if (!jl_is_symbol(debuginfo->def)) // this is a path
89368936
func = debuginfo->def; // this is inlined
89378937
struct jl_codeloc_t lineidx = jl_uncompress1_codeloc(debuginfo->codelocs, pc);
8938-
ssize_t i = lineidx.line;
8938+
size_t i = lineidx.line;
89398939
if (i < 0) // pc out of range: broken debuginfo?
89408940
return false;
89418941
if (i == 0 && lineidx.to == 0) // no update

0 commit comments

Comments
 (0)