Merge pull request #1646 from dneto0/parens-warning

Parenthesize to avoid GCC warning
This commit is contained in:
John Kessenich 2019-01-09 06:01:21 -07:00 committed by GitHub
commit 5795f9e387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2003,7 +2003,7 @@ public:
{
// Most commonly, they are both nullptr, or the same pointer to the same actual structure
if ((!isStruct() && !right.isStruct()) ||
isStruct() && right.isStruct() && structure == right.structure)
(isStruct() && right.isStruct() && structure == right.structure))
return true;
// Both being nullptr was caught above, now they both have to be structures of the same number of elements