1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* array.c (rb_ary_fill): shouldn't yield unless block given.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-01-28 10:18:14 +00:00
parent 8a95f7f981
commit e9d17f8a22
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Jan 28 19:16:58 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* array.c (rb_ary_fill): shouldn't yield unless block given.
Mon Jan 28 18:33:18 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* parse.y (yylex): strict check for numbers.

View file

@ -1390,7 +1390,7 @@ rb_ary_fill(argc, argv, ary)
VALUE item, arg1, arg2;
long beg, end, len;
VALUE *p, *pend;
int block_p;
int block_p = Qfalse;
if (rb_block_given_p()) {
block_p = Qtrue;