diff options
-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 { |