summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-03 11:19:06 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-03 11:19:06 +0000
commit437b8bc53b25c3c2ac751db816dc1076d8c6957f (patch)
tree3c9c94ab9527ffab355fdd0008aca5c570febfeb /hash.c
parent42582358768c50a3e0aa9455218070b19ce7c489 (diff)
* array.c (rb_hash_rehash): use hash_alloc() instead of rb_hash_new().
[Bug #9187] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 b8e94cb..6b24c61 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;