Skip to content

Commit

Permalink
* insns.def (concatstrings): don't use initial ASCII-8BIT string.
Browse files Browse the repository at this point in the history
  [ruby-core:38635] [Bug ruby#5126]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Aug 1, 2011
1 parent 6280ce3 commit db42bd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Aug 1 12:00:35 2011 NARUSE, Yui <[email protected]>

* insns.def (concatstrings): don't use initial ASCII-8BIT string.
[ruby-core:38635] [Bug #5126]

Sun Jul 31 22:57:16 2011 Yuki Sonoda (Yugui) <[email protected]>

* enc/Makefile.in (ECHO1): Same as the recent fix in common.mk.
Expand Down
4 changes: 2 additions & 2 deletions insns.def
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ concatstrings
(...)
(VALUE val) // inc += 1 - num;
{
rb_num_t i = num;
rb_num_t i = num - 1;

val = rb_str_new(0, 0);
val = rb_str_resurrect(TOPN(i));
while (i-- > 0) {
const VALUE v = TOPN(i);
rb_str_append(val, v);
Expand Down

0 comments on commit db42bd0

Please sign in to comment.