summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {