diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-07-13 09:45:35 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-07-13 14:48:14 -0400 |
commit | 32231812845e5302bd457f7e4a534e7965d89d49 (patch) | |
tree | 8e60caac12626d657aab821b1cde8493baca4f1d /vm_insnhelper.c | |
parent | de327ccb63db9f929949a499476647f8def84be2 (diff) |
Remove RARRAY_CONST_PTR_TRANSIENT
RARRAY_CONST_PTR now does the same things as RARRAY_CONST_PTR_TRANSIENT.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8071
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index f60a7c4ee2..9a96fc3b93 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1874,7 +1874,7 @@ vm_expandarray(VALUE *sp, VALUE ary, rb_num_t num, int flag) len = 1; } else { - ptr = RARRAY_CONST_PTR_TRANSIENT(ary); + ptr = RARRAY_CONST_PTR(ary); len = (rb_num_t)RARRAY_LEN(ary); } @@ -2564,7 +2564,7 @@ vm_caller_setup_arg_splat(rb_control_frame_t *cfp, struct rb_calling_info *calli bool ret = false; if (!NIL_P(ary)) { - const VALUE *ptr = RARRAY_CONST_PTR_TRANSIENT(ary); + const VALUE *ptr = RARRAY_CONST_PTR(ary); long len = RARRAY_LEN(ary); int argc = calling->argc; |