diff --git a/include/irrMath.h b/include/irrMath.h index 0219bd4..0bd0be6 100644 --- a/include/irrMath.h +++ b/include/irrMath.h @@ -5,9 +5,9 @@ #pragma once #include "irrTypes.h" -#include +#include #include -#include // for abs() etc. +#include // for abs() etc. #include // For INT_MAX / UINT_MAX #include @@ -197,7 +197,7 @@ namespace core template ::value, bool> = true> inline bool equals(const T a, const T b, const T tolerance = roundingError()) { - return abs(a - b) <= tolerance; + return std::abs(a - b) <= tolerance; } //! returns if a equals b, taking relative error in form of factor