Skip to content

Commit 71d408a

Browse files
author
matz
committed
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 3c1d5b8 commit 71d408a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ ary_fill(argc, argv, ary)
922922
/* beg and len set already */
923923
}
924924
else {
925-
beg = NUM2INT(arg1);
925+
beg = NIL_P(arg1)?0:NUM2INT(arg1);
926926
if (beg < 0) {
927927
beg = RARRAY(ary)->len + beg;
928928
if (beg < 0) beg = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy