summaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-12 07:08:40 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-12 07:08:40 +0000
commit3338886dc10518f59c6d34f7932e9ec8ad7e45f3 (patch)
tree92e7ed712a53dde63bbcb3c8e4c89c54b9d2e39d /array.c
parent098841b7ad4f519ee1e2deb9adb20f8dc3a294cb (diff)
downloadruby-3338886dc10518f59c6d34f7932e9ec8ad7e45f3.tar.gz
ruby-3338886dc10518f59c6d34f7932e9ec8ad7e45f3.tar.xz
ruby-3338886dc10518f59c6d34f7932e9ec8ad7e45f3.zip
eban
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index e665159ee..09c3a0489 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 */