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 /error.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 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -745,7 +745,7 @@ exc_to_s(VALUE exc) static VALUE exc_message(VALUE exc) { - return rb_funcall(exc, idTo_s, 0, 0); + return rb_funcallv(exc, idTo_s, 0, 0); } /* @@ -1444,7 +1444,7 @@ syserr_eqq(VALUE self, VALUE exc) num = rb_attr_get(exc, id_errno); if (NIL_P(num)) { - num = rb_funcall(exc, id_errno, 0, 0); + num = rb_funcallv(exc, id_errno, 0, 0); } e = rb_const_get(self, id_Errno); if (FIXNUM_P(num) ? num == e : rb_equal(num, e)) |