diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-13 16:38:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-13 16:38:23 +0000 |
commit | 1d2078824fa527c4bdc9b7a78a5f2b6c245d1367 (patch) | |
tree | 3a9afae39bd09e8a9894df21be9e1efa66fb9163 | |
parent | c7bea6f6e7a17150424d30439f5548e2176bd2b2 (diff) |
* enum.c (zip_ary): wrong boundary condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | enum.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -15,6 +15,8 @@ Thu Mar 13 10:42:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * numeric.c (fix_divmod): should return integer division. [ruby-dev:34006] + * enum.c (zip_ary): wrong boundary condition. + Thu Mar 13 03:12:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * lib/irb/cmd/help.rb: should be updated for new ri structure. @@ -1360,7 +1360,7 @@ zip_ary(VALUE val, NODE *memo, int argc, VALUE *argv) for (i=0; i<RARRAY_LEN(args); i++) { VALUE e = RARRAY_PTR(args)[i]; - if (RARRAY_LEN(e) < n) { + if (RARRAY_LEN(e) <= n) { rb_ary_push(tmp, Qnil); } else { |