summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-24 14:53:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-24 14:53:36 +0000
commitceb64ff9fc4fd4f9dcf987186f90019b1d9345a8 (patch)
tree79f5a8beca00ed4c40dc1c8f35ddad17c73c5f21 /array.c
parenta530710cb98946be15eba5c9d1e0198aa15d7fe8 (diff)
comment rb_ary_new4 behavior in Ruby 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/array.c b/array.c
index e886c2fa55..6e6778d68d 100644
--- a/array.c
+++ b/array.c
@@ -188,6 +188,8 @@ rb_ary_new4(n, elts)
if (n > 0 && elts) {
MEMCPY(RARRAY(ary)->ptr, elts, VALUE, n);
}
+
+ /* This assignment to len will be moved to the above "if" block in Ruby 1.9 */
RARRAY(ary)->len = n;
return ary;