mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
merge revision(s) 40807: [Backport #8416]
* compile.c (iseq_compile_each): forward anonymous and first keyword rest argument one. [ruby-core:55033] [Bug #8416]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f617028a4
commit
44658707d2
4 changed files with 39 additions and 4 deletions
|
@ -4471,7 +4471,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
|||
}
|
||||
}
|
||||
|
||||
if (liseq->arg_keyword > 0) {
|
||||
if (liseq->arg_keyword >= 0) {
|
||||
int local_size = liseq->local_size;
|
||||
int idx = local_size - liseq->arg_keyword;
|
||||
argc++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue