ruby-changes:31896
From: glass <ko1@a...>
Date: Tue, 3 Dec 2013 20:19:13 +0900 (JST)
Subject: [ruby-changes:31896] glass:r43975 (trunk): * array.c (rb_hash_rehash): use hash_alloc() instead of rb_hash_new().
glass 2013-12-03 20:19:06 +0900 (Tue, 03 Dec 2013) New Revision: 43975 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43975 Log: * array.c (rb_hash_rehash): use hash_alloc() instead of rb_hash_new(). [Bug #9187] Modified files: trunk/ChangeLog trunk/hash.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43974) +++ ChangeLog (revision 43975) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Dec 3 20:16:38 2013 Masaki Matsushita <glass.saga@g...> + + * 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@t...> * load.c (features_index_add_single): Move loaded_features_index array values off Index: hash.c =================================================================== --- hash.c (revision 43974) +++ hash.c (revision 43975) @@ -622,7 +622,7 @@ rb_hash_rehash(VALUE hash) https://github.com/ruby/ruby/blob/trunk/hash.c#L622 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/