1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2004-12-29 16:12:13 +00:00
parent ca61cc0b23
commit cd73de1253
2 changed files with 3 additions and 1 deletions

View file

@ -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>

2
eval.c
View file

@ -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);
}