1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-09-12 06:41:23 +00:00
parent fbcc6dea0c
commit 042bb17f55
2 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,12 @@
Tue Sep 12 14:36:49 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
Tue Sep 12 15:41:13 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
* stable version 1.6.0 released.
Tue Sep 12 15:37:55 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_yield_0): stripped array too much, should be just for
proc_call().
Tue Sep 12 07:05:24 2000 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cgi.rb: version 2.0.0: require ruby1.5.4 or later.

2
eval.c
View file

@ -3427,7 +3427,7 @@ rb_yield_0(val, self, klass, acheck)
if (nd_type(block->var) == NODE_MASGN)
massign(self, block->var, val, acheck);
else {
if (val != Qundef &&
if (acheck && val != Qundef &&
TYPE(val) == T_ARRAY && RARRAY(val)->len == 1) {
val = RARRAY(val)->ptr[0];
}