summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-10 09:44:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-10 09:44:40 +0000
commit71d408a6c3298b229c0f1d2ff7159ca410a4c612 (patch)
tree1f420d616a465d88e66e98a3f4415dab3e27bab6
parent3c1d5b89c33546028fce534546b8e356369ee231 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index b481747..c0900a3 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;