mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* eval.c (rb_mod_modfunc): should follow NODE_ZSUPER link; based
on Guy Decoux's patch in [ruby-talk:25478]. * string.c (rb_str_succ): there was buffer overrun. * parse.y (str_extend): term can be any character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df96f994f1
commit
04f27f5e8d
6 changed files with 36 additions and 11 deletions
6
array.c
6
array.c
|
@ -860,8 +860,10 @@ rb_ary_to_s(ary)
|
|||
VALUE str, sep;
|
||||
|
||||
if (RARRAY(ary)->len == 0) return rb_str_new(0, 0);
|
||||
if (!NIL_P(rb_output_fs)) sep = rb_output_fs;
|
||||
else sep = rb_default_rs;
|
||||
sep = rb_output_fs;
|
||||
#if 1
|
||||
if (NIL_P(rb_output_fs)) sep = rb_default_rs; /* newline */
|
||||
#endif
|
||||
str = rb_ary_join(ary, sep);
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue