aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cont.c b/cont.c
index 61726f12c2..983271d5eb 100644
--- a/cont.c
+++ b/cont.c
@@ -1149,10 +1149,9 @@ rb_fiber_start(void)
TH_PUSH_TAG(th);
if ((state = EXEC_TAG()) == 0) {
int argc;
- VALUE *argv, args;
+ const VALUE *argv, args = cont->value;
GetProcPtr(cont->saved_thread.first_proc, proc);
- args = cont->value;
- argv = (argc = cont->argc) > 1 ? RARRAY_PTR(args) : &args;
+ argv = (argc = cont->argc) > 1 ? RARRAY_RAWPTR(args) : &args;
cont->value = Qnil;
th->errinfo = Qnil;
th->root_lep = rb_vm_ep_local_ep(proc->block.ep);