From 71d408a6c3298b229c0f1d2ff7159ca410a4c612 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 10 Jul 1998 09:44:40 +0000 Subject: *** empty log message *** git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/array.c b/array.c index b48174793b..c0900a3292 100644 --- a/array.c +++ b/array.c @@ -922,7 +922,7 @@ ary_fill(argc, argv, ary) /* beg and len set already */ } else { - beg = NUM2INT(arg1); + beg = NIL_P(arg1)?0:NUM2INT(arg1); if (beg < 0) { beg = RARRAY(ary)->len + beg; if (beg < 0) beg = 0; -- cgit v1.2.1