summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-13 16:38:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-13 16:38:23 +0000
commit1d2078824fa527c4bdc9b7a78a5f2b6c245d1367 (patch)
tree3a9afae39bd09e8a9894df21be9e1efa66fb9163
parentc7bea6f6e7a17150424d30439f5548e2176bd2b2 (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--ChangeLog2
-rw-r--r--enum.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c324133e19..4ddf4e4d31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/enum.c b/enum.c
index 05c425cb42..0715772a39 100644
--- a/enum.c
+++ b/enum.c
@@ -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 {