mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/json: merge JSON 1.7.5.
fix tests and other fixes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
395d7bb346
commit
43f6fdfb42
12 changed files with 84 additions and 32 deletions
|
@ -864,7 +864,7 @@ static int isArrayOrObject(VALUE string)
|
|||
if (string_len < 2) return 0;
|
||||
for (; p < q && isspace(*p); p++);
|
||||
for (; q > p && isspace(*q); q--);
|
||||
return *p == '[' && *q == ']' || *p == '{' && *q == '}';
|
||||
return (*p == '[' && *q == ']') || (*p == '{' && *q == '}');
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue