diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ Thu Dec 30 00:41:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org> + * eval.c (svalue_to_avalue): [ruby-dev:25366] + * string.c (rb_str_justify): [ruby-dev:25367] Wed Dec 29 11:07:07 2004 Dave Thomas <dave@pragprog.com> @@ -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); } |