Bug #8703 ยป patch.diff
hash.c | ||
---|---|---|
Check_Type(hash2, T_HASH);
|
||
if (!RHASH_EMPTY_P(hash2)) {
|
||
if (RHASH_EMPTY_P(hash2)) {
|
||
if (RHASH(hash2)->ntbl)
|
||
hash_tbl(hash)->type = RHASH(hash2)->ntbl->type;
|
||
}
|
||
else {
|
||
RHASH(hash)->ntbl = st_copy(RHASH(hash2)->ntbl);
|
||
rb_hash_rehash(hash);
|
||
}
|