From 57e557908a8c4c01390b7ea52b09f8370a3d7dd3 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 17 Mar 2014 04:20:16 +0000 Subject: * enumerator.c (enumerator_block_call): use PARRAY_CONST_PTR() instead of RARRAY_PTR(). * io.c (rb_io_s_popen): ditto. * numeric.c (num_step_size): ditto. * vm_eval.c (rb_apply): ditto. * vm_eval.c (rb_eval_cmd): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 0c84c49332..7e5ea42cf8 100644 --- a/numeric.c +++ b/numeric.c @@ -1889,7 +1889,7 @@ num_step_size(VALUE from, VALUE args, VALUE eobj) VALUE to, step, hash; int desc; int argc = args ? RARRAY_LENINT(args) : 0; - VALUE *argv = args ? RARRAY_PTR(args) : 0; + const VALUE *argv = args ? RARRAY_CONST_PTR(args) : 0; NUM_STEP_SCAN_ARGS(argc, argv, to, step, hash, desc); -- cgit v1.2.3