summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-03 14:14:09 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-03 14:14:09 +0000
commit7e1f3c636b317571141c9a0ca778a088f7c22ccb (patch)
tree14a30dbd508fd82a03259e1abca84dac284c2421 /object.c
parent218d1f5e1e2377b237c294e871bd3bfd6abf6633 (diff)
* object.c (rb_obj_clone): don't copy FL_WB_PROTECTED of a
original object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index f316a1b..87e9608 100644
--- a/object.c
+++ b/object.c
@@ -336,7 +336,7 @@ rb_obj_clone(VALUE obj)
}
clone = rb_obj_alloc(rb_obj_class(obj));
RBASIC(clone)->flags &= (FL_TAINT|FL_PROMOTED|FL_WB_PROTECTED);
- RBASIC(clone)->flags |= RBASIC(obj)->flags & ~(FL_PROMOTED|FL_FREEZE|FL_FINALIZE);
+ RBASIC(clone)->flags |= RBASIC(obj)->flags & ~(FL_PROMOTED|FL_FREEZE|FL_FINALIZE|FL_WB_PROTECTED);
singleton = rb_singleton_class_clone_and_attach(obj, clone);
RBASIC_SET_CLASS(clone, singleton);