Parenthesize to avoid GCC warning
authorDavid Neto <dneto@google.com>
Tue, 8 Jan 2019 23:57:03 +0000 (18:57 -0500)
committerDavid Neto <dneto@google.com>
Tue, 8 Jan 2019 23:57:03 +0000 (18:57 -0500)
glslang/Include/Types.h

index eb57c3a..edd5cfc 100644 (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