Fixed -Wparentheses warning introduced in v5.6.5 (PR #335 by @nuket)

This commit is contained in:
Max Vilimpoc (unu) authored and Benoit Blanchon committed 2016-08-17 20:37:44 +02:00
1 parent 387b565705
commit 409ca7ee4e
3 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -330,8 +330,8 @@ class JsonVariant : public JsonVariantBase<JsonVariant> {
}
bool isString() const {
return _type == Internals::JSON_STRING ||
_type == Internals::JSON_UNPARSED && _content.asString &&
!strcmp("null", _content.asString);
(_type == Internals::JSON_UNPARSED && _content.asString &&
!strcmp("null", _content.asString));
}
// The current type of the variant