summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-05 09:57:04 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-05 09:57:04 +0000
commit9527d909511cf8f726cd936856adb5f98e9f433c (patch)
tree20ebfbbc0e37788c23e46bac87c29bf1d42358e2 /object.c
parent1e1b5cdd25c87b393658e78a4cfd799ef6caf6da (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/object.c b/object.c
index 3574c6f..cfc1f12 100644
--- a/object.c
+++ b/object.c
@@ -113,6 +113,7 @@ rb_obj_dup(obj)
}
if (!SPECIAL_CONST_P(dup)) {
OBJSETUP(dup, rb_obj_type(obj), BUILTIN_TYPE(obj));
+ OBJ_INFECT(dup, obj);
}
return dup;
}