summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index e7fa574e12..60dc89ff0b 100644
--- a/hash.c
+++ b/hash.c
@@ -265,9 +265,15 @@ rb_hash_become(copy, orig)
if (FL_TEST(orig, HASH_PROC_DEFAULT)) {
FL_SET(copy, HASH_PROC_DEFAULT);
}
+ else {
+ FL_UNSET(copy, HASH_PROC_DEFAULT);
+ }
if (FL_TEST(orig, HASH_DELETED)) {
FL_SET(copy, HASH_DELETED);
}
+ else {
+ FL_UNSET(copy, HASH_DELETED);
+ }
return copy;
}