aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--hash.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 920cc5bbe3..496159baea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Dec 3 20:16:38 2013 Masaki Matsushita <glass.saga@gmail.com>
+
+ * array.c (rb_hash_rehash): use hash_alloc() instead of rb_hash_new().
+ [Bug #9187]
+
Tue Dec 3 17:11:47 2013 Aman Gupta <ruby@tmm1.net>
* load.c (features_index_add_single): Move loaded_features_index array values off
diff --git a/hash.c b/hash.c
index b8e94cbcf6..6b24c61ce7 100644
--- a/hash.c
+++ b/hash.c
@@ -622,7 +622,7 @@ rb_hash_rehash(VALUE hash)
rb_hash_modify_check(hash);
if (!RHASH(hash)->ntbl)
return hash;
- tmp = rb_hash_new();
+ tmp = hash_alloc(0);
tbl = st_init_table_with_size(RHASH(hash)->ntbl->type, RHASH(hash)->ntbl->num_entries);
RHASH(tmp)->ntbl = tbl;