diff options
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -575,8 +575,8 @@ static VALUE rb_hash_become(hash, hash2) VALUE hash, hash2; { - if (hash == hash2) return hash; hash2 = to_hash(hash2); + if (hash == hash2) return hash; rb_hash_clear(hash); st_foreach(RHASH(hash2)->tbl, replace_i, hash); RHASH(hash)->ifnone = RHASH(hash2)->ifnone; |