summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--array.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c8ddb70fe8..e627ef6583 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
-Tue Sep 12 15:41:13 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Sep 12 16:02:20 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
* stable version 1.6.0 released.
+Tue Sep 12 16:01:58 2000 WATANABE Hirofumi <eban@os.rim.or.jp>
+
+ * array.c (rb_ary_unshift_m): typo.
+
Tue Sep 12 15:37:55 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_yield_0): stripped array too much, should be just for
diff --git a/array.c b/array.c
index e665159ee9..09c3a0489d 100644
--- a/array.c
+++ b/array.c
@@ -358,7 +358,7 @@ rb_ary_unshift_m(argc, argv, ary)
if (argc == 0) {
rb_raise(rb_eArgError, "wrong # of arguments(at least 1)");
}
- if (argc > 1) {
+ if (argc > 0) {
long len = RARRAY(ary)->len;
/* make rooms by setting the last item */