зеркало из https://github.com/github/ruby.git
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:
Родитель
dbb05925f7
Коммит
354e376028
5
array.c
5
array.c
|
@ -409,7 +409,10 @@ static VALUE
|
||||||
ary_make_shared(VALUE ary)
|
ary_make_shared(VALUE ary)
|
||||||
{
|
{
|
||||||
assert(!ARY_EMBED_P(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;
|
return ary;
|
||||||
}
|
}
|
||||||
else if (OBJ_FROZEN(ary)) {
|
else if (OBJ_FROZEN(ary)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче