diff options
author | Peter Zhu <[email protected]> | 2023-07-13 09:45:35 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-07-13 14:48:14 -0400 |
commit | 32231812845e5302bd457f7e4a534e7965d89d49 (patch) | |
tree | 8e60caac12626d657aab821b1cde8493baca4f1d /thread.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 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -589,7 +589,7 @@ thread_do_start_proc(rb_thread_t *th) if (args_len < 8) { /* free proc.args if the length is enough small */ args_ptr = ALLOCA_N(VALUE, args_len); - MEMCPY((VALUE *)args_ptr, RARRAY_CONST_PTR_TRANSIENT(args), VALUE, args_len); + MEMCPY((VALUE *)args_ptr, RARRAY_CONST_PTR(args), VALUE, args_len); th->invoke_arg.proc.args = Qnil; } else { |