aboutsummaryrefslogtreecommitdiffstats
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 2a5803c96e..bcda8065af 100644
--- a/hash.c
+++ b/hash.c
@@ -381,8 +381,8 @@ rb_hash_indexes(argc, argv, hash)
indexes = rb_ary_new2(argc);
for (i=0; i<argc; i++) {
RARRAY(indexes)->ptr[i] = rb_hash_aref(hash, argv[i]);
+ RARRAY(indexes)->len++;
}
- RARRAY(indexes)->len = i;
return indexes;
}