diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-07-10 09:44:40 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-07-10 09:44:40 +0000 |
commit | 71d408a6c3298b229c0f1d2ff7159ca410a4c612 (patch) | |
tree | 1f420d616a465d88e66e98a3f4415dab3e27bab6 | |
parent | 3c1d5b89c33546028fce534546b8e356369ee231 (diff) | |
download | ruby-71d408a6c3298b229c0f1d2ff7159ca410a4c612.tar.gz |
*** 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |