From dc626dbab3caaf221c9c7b88a5500ae878615712 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 25 Sep 2013 08:24:34 +0000 Subject: * include/ruby/ruby.h: rename RARRAY_RAWPTR() to RARRAY_CONST_PTR(). RARRAY_RAWPTR(ary) returns (const VALUE *) type pointer and usecase of this macro is not acquire raw pointer, but acquire read-only pointer. So we rename to better name. RSTRUCT_RAWPTR() is also renamed to RSTRUCT_CONST_PTR() (I expect that nobody use it). * array.c, compile.c, cont.c, enumerator.c, gc.c, proc.c, random.c, string.c, struct.c, thread.c, vm_eval.c, vm_insnhelper.c: catch up this change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 983271d5eb..40aa2731d5 100644 --- a/cont.c +++ b/cont.c @@ -1151,7 +1151,7 @@ rb_fiber_start(void) int argc; const VALUE *argv, args = cont->value; GetProcPtr(cont->saved_thread.first_proc, proc); - argv = (argc = cont->argc) > 1 ? RARRAY_RAWPTR(args) : &args; + argv = (argc = cont->argc) > 1 ? RARRAY_CONST_PTR(args) : &args; cont->value = Qnil; th->errinfo = Qnil; th->root_lep = rb_vm_ep_local_ep(proc->block.ep); -- cgit v1.2.3