summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-11 02:22:49 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-11 02:22:49 +0000
commitd8cf72f4189e701172878836becef3f047a57dc5 (patch)
tree4d10d074b6b086921faae3e8c2dd486048ff7362
parentccb84f7b04861339be7130b0dccc9de3a52a3436 (diff)
merge revision(s) 34270: [Backport #5858]
* string.c (rb_str_concat): set array element after definition to fix compile error with Fujitsu C Compiler 5.6 on Solaris 10 on Sparc. [Bug #5878] [ruby-dev:45123] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--string.c3
-rw-r--r--version.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index efabc80ab4..9c2ef9ccd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Apr 11 11:22:32 2013 Naohisa Goto <ngoto@gen-info.osaka-u.ac.jp>
+
+ * string.c (rb_str_concat): set array element after definition
+ to fix compile error with Fujitsu C Compiler 5.6 on Solaris 10
+ on Sparc. [Bug #5878] [ruby-dev:45123]
+
Thu Apr 11 11:21:25 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_magic_comment): should pass the proper value.
diff --git a/string.c b/string.c
index 65268e806b..f2c60715a2 100644
--- a/string.c
+++ b/string.c
@@ -2098,7 +2098,8 @@ rb_str_concat(VALUE str1, VALUE str2)
if (enc == rb_usascii_encoding()) {
/* US-ASCII automatically extended to ASCII-8BIT */
- char buf[1] = {(char)code};
+ char buf[1];
+ buf[0] = (char)code;
if (code > 0xFF) {
rb_raise(rb_eRangeError, "%u out of char range", code);
}
diff --git a/version.h b/version.h
index acb151dda4..b989fdece9 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 413
+#define RUBY_PATCHLEVEL 414
#define RUBY_RELEASE_DATE "2013-04-11"
#define RUBY_RELEASE_YEAR 2013