summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-08 02:31:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-08 02:31:02 +0000
commite4f5562f17d4a89d1ae20d1914ff9cb1fd9d3529 (patch)
tree8a68498139c248a7629d12bab246c2408e46e98c /eval.c
parent03e45b46eaa6f91ec337847afbadc1f3c0170e71 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 7dbc4d7ab8..0a0eb12f02 100644
--- a/eval.c
+++ b/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);