core: Fix ndarray subscript operator returning the wrong object

Should be returning the newly created object instead of the original
ndarray...
This commit is contained in:
David Mak 2024-03-06 20:17:40 +08:00
parent 96b7f29679
commit 3292aed099
1 changed files with 1 additions and 1 deletions

View File

@ -1342,7 +1342,7 @@ fn gen_ndarray_subscript_expr<'ctx, G: CodeGenerator>(
llvm_i1.const_zero(), llvm_i1.const_zero(),
); );
Ok(Some(v.get_ptr().into())) Ok(Some(ndarray.get_ptr().into()))
} }
} }