Fixed atanh warning #484

This commit is contained in:
Christophe Riccio
2016-02-21 19:40:24 +01:00
parent 0d48c43385
commit 045aa8e541
2 changed files with 2 additions and 2 deletions

View File

@@ -210,7 +210,7 @@ namespace glm
{
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'atanh' only accept floating-point input");
if(abs(x) >= static_cast<genType>(1))
if(std::abs(x) >= static_cast<genType>(1))
return 0;
return static_cast<genType>(0.5) * log((static_cast<genType>(1) + x) / (static_cast<genType>(1) - x));
}