use rb_funcallv

* use rb_funcallv() for no arguments call instead of variadic
  rb_funcall().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-02-16 04:08:52 +00:00
parent 745737e769
commit 16294913f7
15 changed files with 64 additions and 64 deletions

4
proc.c
View file

@ -2306,13 +2306,13 @@ method_inspect(VALUE method)
static VALUE
mproc(VALUE method)
{
return rb_funcall2(rb_mRubyVMFrozenCore, idProc, 0, 0);
return rb_funcallv(rb_mRubyVMFrozenCore, idProc, 0, 0);
}
static VALUE
mlambda(VALUE method)
{
return rb_funcall(rb_mRubyVMFrozenCore, idLambda, 0, 0);
return rb_funcallv(rb_mRubyVMFrozenCore, idLambda, 0, 0);
}
static VALUE