* eval.c (massign): fix a bug not to expand in assigment to sole
lhs. [ruby-dev:19766] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
03e45b46ea
commit
e4f5562f17
@ -1,3 +1,8 @@
|
||||
Sat Mar 08 11:30:59 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* eval.c (massign): fix a bug not to expand in assigment to sole
|
||||
lhs. [ruby-dev:19766]
|
||||
|
||||
Fri Mar 7 21:57:25 2003 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/pp.rb (Kernel.pp): module function.
|
||||
|
2
eval.c
2
eval.c
@ -4029,7 +4029,7 @@ massign(self, node, val, pcall)
|
||||
|
||||
len = RARRAY(val)->len;
|
||||
list = node->nd_head;
|
||||
if (len == 1 && list && (list->nd_next || node->nd_args)) {
|
||||
if (len == 1 && list && (!pcall || list->nd_next || node->nd_args)) {
|
||||
VALUE v = RARRAY(val)->ptr[0];
|
||||
tmp = rb_check_array_type(v);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user