summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 401b7e4ab1..1bc93ea92c 100644
--- a/hash.c
+++ b/hash.c
@@ -1750,7 +1750,9 @@ each_pair_i(VALUE key, VALUE value)
static int
each_pair_i_fast(VALUE key, VALUE value)
{
- VALUE argv[2] = {key, value};
+ VALUE argv[2];
+ argv[0] = key;
+ argv[1] = value;
rb_yield_values2(2, argv);
return ST_CONTINUE;
}