mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (ary_make_shared): should count frozen array itself.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c305c808e6
commit
1a78256861
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
Sat Oct 3 02:48:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Oct 3 02:49:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/rake: updated to rake code to rake-0.8.7 source code base.
|
||||
* array.c (ary_make_shared): should count frozen array itself.
|
||||
|
||||
Sat Oct 3 01:01:20 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
|
|
2
array.c
2
array.c
|
@ -418,7 +418,7 @@ ary_make_shared(VALUE ary)
|
|||
else if (OBJ_FROZEN(ary)) {
|
||||
ary_resize_capa(ary, ARY_HEAP_LEN(ary));
|
||||
FL_SET_SHARED_ROOT(ary);
|
||||
ARY_SET_SHARED_NUM(ary, 0);
|
||||
ARY_SET_SHARED_NUM(ary, 1);
|
||||
return ary;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue