mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge revision(s) 34306:
* ext/json/parser/parser.rl (json_string_unescape): workaround fix for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@40305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a840645f91
commit
e80d0a9631
4 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Apr 15 14:57:43 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/json/parser/parser.rl (json_string_unescape): workaround fix
|
||||
for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888]
|
||||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862
|
||||
|
||||
Mon Apr 15 10:56:55 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* cont.c (cont_restore_0): prevent optimizing out `sp'. sp is used for
|
||||
|
|
|
@ -1283,6 +1283,7 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
|
|||
{
|
||||
char *p = string, *pe = string, *unescape;
|
||||
int unescape_len;
|
||||
char buf[4];
|
||||
|
||||
while (pe < stringEnd) {
|
||||
if (*pe == '\\') {
|
||||
|
@ -1315,7 +1316,6 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
|
|||
if (pe > stringEnd - 4) {
|
||||
return Qnil;
|
||||
} else {
|
||||
char buf[4];
|
||||
UTF32 ch = unescape_unicode((unsigned char *) ++pe);
|
||||
pe += 3;
|
||||
if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
|
||||
|
|
|
@ -382,6 +382,7 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
|
|||
{
|
||||
char *p = string, *pe = string, *unescape;
|
||||
int unescape_len;
|
||||
char buf[4];
|
||||
|
||||
while (pe < stringEnd) {
|
||||
if (*pe == '\\') {
|
||||
|
@ -414,7 +415,6 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
|
|||
if (pe > stringEnd - 4) {
|
||||
return Qnil;
|
||||
} else {
|
||||
char buf[4];
|
||||
UTF32 ch = unescape_unicode((unsigned char *) ++pe);
|
||||
pe += 3;
|
||||
if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.2"
|
||||
#define RUBY_PATCHLEVEL 324
|
||||
#define RUBY_PATCHLEVEL 325
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 9
|
||||
#define RUBY_VERSION_TEENY 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue