forked from M-Labs/nac3
1
0
Fork 0

core: Fix ndarray_eye not preserving signness of offset

This commit is contained in:
David Mak 2024-03-07 12:56:21 +08:00
parent 3292aed099
commit cccd8f2d00
1 changed files with 1 additions and 1 deletions

View File

@ -635,7 +635,7 @@ fn call_ndarray_eye_impl<'ctx>(
let col_with_offset = ctx.builder
.build_int_add(
col,
ctx.builder.build_int_z_extend_or_bit_cast(offset, llvm_usize, "").unwrap(),
ctx.builder.build_int_s_extend_or_bit_cast(offset, llvm_usize, "").unwrap(),
"",
)
.unwrap();