diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-06 01:44:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-06 01:44:38 +0000 |
commit | 6e787a638c11acadaaeb119dbfb8dc698696a059 (patch) | |
tree | d2bb5f390d7ea42ba4cd4fde652505beabd2f88c /array.c | |
parent | 366ff21e067218a588a4f8b25baebb9472a9debc (diff) |
* array.c (rb_ary_product): need to set the length in order to get
the entries marked. [ruby-dev:41540]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4306,6 +4306,7 @@ rb_ary_product(int argc, VALUE *argv, VALUE ary) RBASIC(t1)->klass = 0; /* initialize the arrays of arrays */ + ARY_SET_LEN(t0, n); arrays[0] = ary; for (i = 1; i < n; i++) arrays[i] = to_ary(argv[i-1]); |