diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-19 14:42:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-19 14:42:45 +0000 |
commit | d2403667fd954c7f331d1453d1330fa5bb997bbe (patch) | |
tree | da51f25d928d2c8825aa66b1bf6c5f7880aa8e11 /array.c | |
parent | 8d4fda47e4867c2c8583ff396e21223a164dfb46 (diff) | |
download | ruby-d2403667fd954c7f331d1453d1330fa5bb997bbe.tar.gz ruby-d2403667fd954c7f331d1453d1330fa5bb997bbe.tar.xz ruby-d2403667fd954c7f331d1453d1330fa5bb997bbe.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@1847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |