summaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-02 17:49:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-02 17:49:52 +0000
commit63ccc3978fc3429cf016fd57fee25ab879439634 (patch)
tree5b2be15c330c289461fee4665b3e59639f6b1851 /array.c
parent1827967f1c3a87ffa96126eb486e90736dba5cdc (diff)
downloadruby-63ccc3978fc3429cf016fd57fee25ab879439634.tar.gz
ruby-63ccc3978fc3429cf016fd57fee25ab879439634.tar.xz
ruby-63ccc3978fc3429cf016fd57fee25ab879439634.zip
* array.c (ary_make_shared): should count frozen array itself.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 55904ddcd..f1844b0fc 100644
--- a/array.c
+++ b/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 {