mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enum.c (zip_ary): wrong boundary condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c7bea6f6e7
commit
1d2078824f
2 changed files with 3 additions and 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]
|
* 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>
|
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.
|
* lib/irb/cmd/help.rb: should be updated for new ri structure.
|
||||||
|
|
2
enum.c
2
enum.c
|
@ -1360,7 +1360,7 @@ zip_ary(VALUE val, NODE *memo, int argc, VALUE *argv)
|
||||||
for (i=0; i<RARRAY_LEN(args); i++) {
|
for (i=0; i<RARRAY_LEN(args); i++) {
|
||||||
VALUE e = RARRAY_PTR(args)[i];
|
VALUE e = RARRAY_PTR(args)[i];
|
||||||
|
|
||||||
if (RARRAY_LEN(e) < n) {
|
if (RARRAY_LEN(e) <= n) {
|
||||||
rb_ary_push(tmp, Qnil);
|
rb_ary_push(tmp, Qnil);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue