mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
forget to commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dbb05925f7
commit
354e376028
1 changed files with 4 additions and 1 deletions
5
array.c
5
array.c
|
@ -409,7 +409,10 @@ static VALUE
|
|||
ary_make_shared(VALUE ary)
|
||||
{
|
||||
assert(!ARY_EMBED_P(ary));
|
||||
if (ARY_SHARED_P(ary) || ARY_SHARED_ROOT_P(ary)) {
|
||||
if (ARY_SHARED_P(ary)) {
|
||||
return ARY_SHARED(ary);
|
||||
}
|
||||
else if (ARY_SHARED_ROOT_P(ary)) {
|
||||
return ary;
|
||||
}
|
||||
else if (OBJ_FROZEN(ary)) {
|
||||
|
|
Loading…
Reference in a new issue