aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-16 04:08:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-16 04:08:52 +0000
commit16294913f71b8a38526096cf6458340b19b45f9f (patch)
tree7ea6d536085fb2ebeee6556ad66dbd2e7338559f /numeric.c
parent745737e769cd882c533e39a24254dcbe54e44a37 (diff)
downloadruby-16294913f71b8a38526096cf6458340b19b45f9f.tar.gz
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
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index 0222c76e29..2474b49114 100644
--- a/numeric.c
+++ b/numeric.c
@@ -614,7 +614,7 @@ num_zero_p(VALUE num)
static VALUE
num_nonzero_p(VALUE num)
{
- if (RTEST(rb_funcall(num, rb_intern("zero?"), 0, 0))) {
+ if (RTEST(rb_funcallv(num, rb_intern("zero?"), 0, 0))) {
return Qnil;
}
return num;
@@ -634,7 +634,7 @@ num_nonzero_p(VALUE num)
static VALUE
num_to_int(VALUE num)
{
- return rb_funcall(num, id_to_i, 0, 0);
+ return rb_funcallv(num, id_to_i, 0, 0);
}