summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
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 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 */