diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 04:30:19 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 04:30:19 +0000 |
commit | 6fafbfd63e9f56350e06910bbac70bf7ff0d5df0 (patch) | |
tree | 339f523964f7af8c0c8cd90acb06d38486ec5dbf /insnhelper.ci | |
parent | 4afa82056c42f9f2010fbc9d17c5aa3887610e2b (diff) | |
download | ruby-6fafbfd63e9f56350e06910bbac70bf7ff0d5df0.tar.gz |
* insnhelper.ci (vm_yield_with_cfunc): fix to passing argc on third
parameter of IFUNC. [ruby-dev:32329]
* enumerator.c: fix to pass exact number of argument.
* eval.c (rb_yield_values2): added.
* include/ruby/ruby.h: ditto.
* bootstraptest/test_knownbug.rb: move a fixed test.
* bootstraptest/test_block.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insnhelper.ci')
-rw-r--r-- | insnhelper.ci | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/insnhelper.ci b/insnhelper.ci index 12ce484612..743cd64dff 100644 --- a/insnhelper.ci +++ b/insnhelper.ci @@ -661,7 +661,7 @@ vm_yield_with_cfunc(rb_thread_t *th, rb_block_t *block, self, (VALUE)block->dfp, 0, th->cfp->sp, block->lfp, 1); - val = (*ifunc->nd_cfnc) (arg, ifunc->nd_tval, Qnil); + val = (*ifunc->nd_cfnc) (arg, ifunc->nd_tval, (VALUE) argc); th->cfp++; return val; |