mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e1b5cdd25
commit
9527d90951
6 changed files with 146 additions and 129 deletions
1
object.c
1
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue