forked from M-Labs/nac3
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:
parent
96b7f29679
commit
3292aed099
|
@ -1342,7 +1342,7 @@ fn gen_ndarray_subscript_expr<'ctx, G: CodeGenerator>(
|
|||
llvm_i1.const_zero(),
|
||||
);
|
||||
|
||||
Ok(Some(v.get_ptr().into()))
|
||||
Ok(Some(ndarray.get_ptr().into()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue