summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index f221418b60..6a445b88ff 100644
--- a/hash.c
+++ b/hash.c
@@ -1086,7 +1086,7 @@ each_i(key, value)
VALUE key, value;
{
if (key == Qundef) return ST_CONTINUE;
- rb_yield(rb_assoc_new(key, value));
+ rb_yield(rb_assoc(key, value));
return ST_CONTINUE;
}