From 2efe05858a41d35ff8a648ac4fbffc358203b980 Mon Sep 17 00:00:00 2001 From: eban Date: Tue, 12 Sep 2000 07:08:40 +0000 Subject: [PATCH] eban git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 +++++- array.c | 2 +- 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 +Tue Sep 12 16:02:20 2000 Yukihiro Matsumoto * stable version 1.6.0 released. +Tue Sep 12 16:01:58 2000 WATANABE Hirofumi + + * array.c (rb_ary_unshift_m): typo. + Tue Sep 12 15:37:55 2000 Yukihiro Matsumoto * 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 */