Skip to content

Commit

Permalink
Use list_get instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Oct 17, 2024
1 parent 4d9bdd5 commit 6938088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ark/src/variables/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ impl PositronVariable {
VECSXP | EXPRSXP => {
let index = parse_index(access_key)?;
Ok(EnvironmentVariableNode::Concrete {
object: RObject::view(unsafe { VECTOR_ELT(object.sexp, index) }),
object: RObject::view(harp::list_get(object.sexp, index)),
})
},
LISTSXP => {
Expand Down

0 comments on commit 6938088

Please sign in to comment.