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:
parent
8a95f7f981
commit
e9d17f8a22
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
Mon Jan 28 18:33:18 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* parse.y (yylex): strict check for numbers.
|
* parse.y (yylex): strict check for numbers.
|
||||||
|
|
2
array.c
2
array.c
|
@ -1390,7 +1390,7 @@ rb_ary_fill(argc, argv, ary)
|
||||||
VALUE item, arg1, arg2;
|
VALUE item, arg1, arg2;
|
||||||
long beg, end, len;
|
long beg, end, len;
|
||||||
VALUE *p, *pend;
|
VALUE *p, *pend;
|
||||||
int block_p;
|
int block_p = Qfalse;
|
||||||
|
|
||||||
if (rb_block_given_p()) {
|
if (rb_block_given_p()) {
|
||||||
block_p = Qtrue;
|
block_p = Qtrue;
|
||||||
|
|
Loading…
Reference in a new issue