Skip to content

Commit

Permalink
Replace STRING_PTR with STRING_PTR_RO (#1719)
Browse files Browse the repository at this point in the history
Progress towards #1706
  • Loading branch information
yutannihilation authored Jun 27, 2024
1 parent 55c31f7 commit cebbabf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rlang/vec.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ const void* r_raw_cbegin(r_obj* x) {
}
static inline
r_obj* const * r_chr_cbegin(r_obj* x) {
return (r_obj* const *) STRING_PTR(x);
return STRING_PTR_RO(x);
}
static inline
r_obj* const * r_list_cbegin(r_obj* x) {
#if (R_VERSION < R_Version(3, 5, 0))
return ((r_obj* const *) STRING_PTR(x));
return STRING_PTR_RO(x);
#else
return ((r_obj* const *) DATAPTR_RO(x));
#endif
Expand Down

0 comments on commit cebbabf

Please sign in to comment.