Fixed GCC+Clang errors and warnings on Linux and OSX.

This commit is contained in:
Branimir Karadžić
2018-03-03 13:04:12 -08:00
parent 41e24fdb83
commit 1de8e54d66
4 changed files with 6 additions and 6 deletions

View File

@@ -7446,8 +7446,8 @@ const TFunction* HlslParseContext::findFunction(const TSourceLoc& loc, TFunction
}
};
return std::abs(linearize(to2.getBasicType()) - linearize(from.getBasicType())) <
std::abs(linearize(to1.getBasicType()) - linearize(from.getBasicType()));
return abs(linearize(to2.getBasicType()) - linearize(from.getBasicType())) <
abs(linearize(to1.getBasicType()) - linearize(from.getBasicType()));
};
// for ambiguity reporting