diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-24 14:53:36 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-24 14:53:36 +0000 |
commit | ceb64ff9fc4fd4f9dcf987186f90019b1d9345a8 (patch) | |
tree | 79f5a8beca00ed4c40dc1c8f35ddad17c73c5f21 /array.c | |
parent | a530710cb98946be15eba5c9d1e0198aa15d7fe8 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |