Merge pull request #213 from nipunn1313/master
Fixed compiler warning in expression type caster
This commit is contained in:
2
expr.cpp
2
expr.cpp
@@ -6614,7 +6614,7 @@ TypeCastExpr::TypeCheck() {
|
|||||||
return this;
|
return this;
|
||||||
|
|
||||||
if (Type::Equal(fromType, AtomicType::Void) ||
|
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\"",
|
Error(pos, "Can't type cast from type \"%s\" to type \"%s\"",
|
||||||
fromType->GetString().c_str(), toType->GetString().c_str());
|
fromType->GetString().c_str(), toType->GetString().c_str());
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user