diff --git a/nac3core/src/codegen/expr.rs b/nac3core/src/codegen/expr.rs index 7bc16ee9..546a82ff 100644 --- a/nac3core/src/codegen/expr.rs +++ b/nac3core/src/codegen/expr.rs @@ -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())) } }