summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-29 16:12:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-29 16:12:13 +0000
commitcd73de1253187b112d7695915430787c5adf89f5 (patch)
tree4270456aea6ea1e72094fe2545755f2638c0f375 /eval.c
parentca61cc0b239e5561f767327579b2a37216fb74fe (diff)
* eval.c (svalue_to_avalue): [ruby-dev:25366]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7686 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 a8a3cb19e2..eb0fa3873b 100644
--- a/eval.c
+++ b/eval.c
@@ -2545,7 +2545,7 @@ svalue_to_avalue(v)
if (RARRAY(tmp)->len == 1) {
top = rb_check_array_type(RARRAY(tmp)->ptr[0]);
if (!NIL_P(top) && RARRAY(top)->len > 1) {
- return v;
+ return tmp;
}
return rb_ary_new3(1, v);
}