Skip to content

Commit

Permalink
* enum.c (zip_ary): wrong boundary condition.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Mar 13, 2008
1 parent c7bea6f commit 1d20788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Thu Mar 13 10:42:46 2008 Yukihiro Matsumoto <[email protected]>

* 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 <[email protected]>

* lib/irb/cmd/help.rb: should be updated for new ri structure.
Expand Down
2 changes: 1 addition & 1 deletion enum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1d20788

Please sign in to comment.