aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index 13bf3b674e..ddfe3c2b2b 100644
--- a/array.c
+++ b/array.c
@@ -2869,6 +2869,7 @@ ary_make_hash(VALUE ary1, VALUE ary2)
VALUE hash = rb_hash_new();
long i;
+ RBASIC(hash)->klass = 0;
for (i=0; i<RARRAY_LEN(ary1); i++) {
rb_hash_aset(hash, RARRAY_PTR(ary1)[i], Qtrue);
}