mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (rb_ary_join): do not repeat self in a recursive array.
[ruby-dev:37019] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88a4f33121
commit
4927a7c77a
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 4 03:28:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* array.c (rb_ary_join): do not repeat self in a recursive array.
|
||||
[ruby-dev:37019]
|
||||
|
||||
Tue Nov 4 01:56:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/intern.h (rb_mutex_synchronize): fixed prototype.
|
||||
|
|
5
array.c
5
array.c
|
@ -1487,7 +1487,10 @@ rb_ary_join(VALUE ary, VALUE sep)
|
|||
case T_STRING:
|
||||
break;
|
||||
case T_ARRAY:
|
||||
{
|
||||
if (tmp == ary) {
|
||||
tmp = rb_usascii_str_new2("[...]");
|
||||
}
|
||||
else {
|
||||
VALUE args[2];
|
||||
|
||||
args[0] = tmp;
|
||||
|
|
Loading…
Add table
Reference in a new issue