diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-12 10:51:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-12 10:51:49 +0000 |
commit | 43f6fdfb42d3f4c9025c290bdf5aeffe5959f1bf (patch) | |
tree | bc2260bf09b94eef5c9ce2b08f366a822a9a2fed /ext/json/generator/generator.c | |
parent | 395d7bb34624d69bf54e121a4f385ef84537e996 (diff) | |
download | ruby-43f6fdfb42d3f4c9025c290bdf5aeffe5959f1bf.tar.gz |
* 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
Diffstat (limited to 'ext/json/generator/generator.c')
-rw-r--r-- | ext/json/generator/generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c index b1babb15f3..3cff87d7d5 100644 --- a/ext/json/generator/generator.c +++ b/ext/json/generator/generator.c @@ -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 == '}'); } /* |