summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-16 04:08:52 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-16 04:08:52 (GMT)
commit16294913f71b8a38526096cf6458340b19b45f9f (patch)
tree7ea6d536085fb2ebeee6556ad66dbd2e7338559f /range.c
parent745737e769cd882c533e39a24254dcbe54e44a37 (diff)
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 'range.c')
-rw-r--r--range.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/range.c b/range.c
index 232e36c..7ea29df 100644
--- a/range.c
+++ b/range.c
@@ -273,7 +273,7 @@ range_each_func(VALUE range, rb_block_call_func *func, VALUE arg)
if (EXCL(range)) {
while (r_lt(v, e)) {
(*func) (v, arg, 0, 0, 0);
- v = rb_funcall(v, id_succ, 0, 0);
+ v = rb_funcallv(v, id_succ, 0, 0);
}
}
else {
@@ -281,7 +281,7 @@ range_each_func(VALUE range, rb_block_call_func *func, VALUE arg)
(*func) (v, arg, 0, 0, 0);
if (c == (int)INT2FIX(0))
break;
- v = rb_funcall(v, id_succ, 0, 0);
+ v = rb_funcallv(v, id_succ, 0, 0);
}
}
}