diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-16 04:08:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-16 04:08:52 +0000 |
commit | 16294913f71b8a38526096cf6458340b19b45f9f (patch) | |
tree | 7ea6d536085fb2ebeee6556ad66dbd2e7338559f /numeric.c | |
parent | 745737e769cd882c533e39a24254dcbe54e44a37 (diff) | |
download | ruby-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |