Added parentheses around a || b && c statement in TypeCastExpr

to placate the compiler warning and make the code easier to understand.
This commit is contained in:
Nipunn Koorapati
2012-03-28 02:40:06 -04:00
parent f8a39402a2
commit 4690a678c1

View File

@@ -6614,7 +6614,7 @@ TypeCastExpr::TypeCheck() {
return this;
if (Type::Equal(fromType, AtomicType::Void) ||
fromType->IsVaryingType() && toType->IsUniformType()) {
(fromType->IsVaryingType() && toType->IsUniformType())) {
Error(pos, "Can't type cast from type \"%s\" to type \"%s\"",
fromType->GetString().c_str(), toType->GetString().c_str());
return NULL;