diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-08 02:31:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-08 02:31:02 +0000 |
commit | 00be1aa220681a73461d98d7c06b1e8b8e9ed24c (patch) | |
tree | 8a68498139c248a7629d12bab246c2408e46e98c | |
parent | ba6dbd79c96b19e33f1e8feb9d5d6e9b4e50c56c (diff) | |
download | ruby-00be1aa220681a73461d98d7c06b1e8b8e9ed24c.tar.gz ruby-00be1aa220681a73461d98d7c06b1e8b8e9ed24c.tar.xz ruby-00be1aa220681a73461d98d7c06b1e8b8e9ed24c.zip |
* eval.c (massign): fix a bug not to expand in assigment to sole
lhs. [ruby-dev:19766]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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. @@ -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); |