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 f09b19af51..b03c13dc13 100644
--- a/hash.c
+++ b/hash.c
@@ -1713,7 +1713,7 @@ rb_hash_keys(VALUE hash)
if (OBJ_PROMOTED(keys)) rb_gc_writebarrier_remember_promoted(keys);
RARRAY_PTR_USE(keys, ptr, {
- size = st_keys(table, ptr, size);
+ size = st_keys_check(table, ptr, size, Qundef);
});
rb_ary_set_len(keys, size);
}