aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-13 22:22:14 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-13 22:22:14 +0000
commitbcea13d310b1f1019827da6bd1d66194bcdaa6bb (patch)
treece17f9c0128fed7261771b868fa521f1b89f9a3c /hash.c
parent39b119ec1a803c3bd2d8f360b10435ade003180a (diff)
downloadruby-bcea13d310b1f1019827da6bd1d66194bcdaa6bb.tar.gz
* hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 8ff6d1b94b..401b7e4ab1 100644
--- a/hash.c
+++ b/hash.c
@@ -1750,7 +1750,8 @@ each_pair_i(VALUE key, VALUE value)
static int
each_pair_i_fast(VALUE key, VALUE value)
{
- rb_yield_values(2, key, value);
+ VALUE argv[2] = {key, value};
+ rb_yield_values2(2, argv);
return ST_CONTINUE;
}