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 | e4f5562f17d4a89d1ae20d1914ff9cb1fd9d3529 (patch) | |
tree | 8a68498139c248a7629d12bab246c2408e46e98c /eval.c | |
parent | 03e45b46eaa6f91ec337847afbadc1f3c0170e71 (diff) |
* 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
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |