diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-18 07:54:26 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-18 07:54:26 +0000 |
commit | 7318a6db760e28e023fec51375f3efdf9e8fb416 (patch) | |
tree | 1ed5253cf54e96b55608d9c1314c7c479ef534b6 /eval.c | |
parent | df80a7b4bb326d701cbee9849cd47f19a45ff32e (diff) | |
download | ruby-7318a6db760e28e023fec51375f3efdf9e8fb416.tar.gz |
* eval.c (yield_under_i): argument should be passed in avalue
from. [ruby-dev:29044]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6481,8 +6481,10 @@ static VALUE yield_under_i(VALUE arg) { VALUE *args = (VALUE *)arg; + int flags = YIELD_PUBLIC_DEF; + if (args[0] != Qundef) flags |= YIELD_ARY_ARGS; - return rb_yield_0(args[0], args[1], ruby_cbase, YIELD_PUBLIC_DEF); + return rb_yield_0(args[0], args[1], ruby_cbase, flags); } /* block eval under the class/module context */ |