Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* insns.def (concatstrings): don't use initial ASCII-8BIT string.

  [ruby-core:38635] [Bug #5126]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit db42bd0448f01a79ddcc522be13b49651118fc82 1 parent 6280ce3
@nurse nurse authored
Showing with 7 additions and 2 deletions.
  1. +5 −0 ChangeLog
  2. +2 −2 insns.def
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Mon Aug 1 12:00:35 2011 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * 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) <yugui@yugui.jp>
* enc/Makefile.in (ECHO1): Same as the recent fix in common.mk.
View
4 insns.def
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.