mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* 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
This commit is contained in:
parent
664ee1a89f
commit
57e557908a
5 changed files with 19 additions and 6 deletions
|
@ -422,13 +422,13 @@ static VALUE
|
|||
enumerator_block_call(VALUE obj, rb_block_call_func *func, VALUE arg)
|
||||
{
|
||||
int argc = 0;
|
||||
VALUE *argv = 0;
|
||||
const VALUE *argv = 0;
|
||||
const struct enumerator *e = enumerator_ptr(obj);
|
||||
ID meth = e->meth;
|
||||
|
||||
if (e->args) {
|
||||
argc = RARRAY_LENINT(e->args);
|
||||
argv = RARRAY_PTR(e->args);
|
||||
argv = RARRAY_CONST_PTR(e->args);
|
||||
}
|
||||
return rb_block_call(e->obj, meth, argc, argv, func, arg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue