diff --git a/src/Magnum/Math/TypeTraits.h b/src/Magnum/Math/TypeTraits.h index 7a5fb6914..309b8d54e 100644 --- a/src/Magnum/Math/TypeTraits.h +++ b/src/Magnum/Math/TypeTraits.h @@ -161,7 +161,7 @@ template struct TypeTraitsFloatingPoint { /* Adapted from http://floating-point-gui.de/errors/comparison/ */ template bool TypeTraitsFloatingPoint::equals(const T a, const T b) { /* Shortcut for binary equality (also infinites) */ - if (a == b) return true; + if(a == b) return true; const T absA = std::abs(a); const T absB = std::abs(b); @@ -169,7 +169,7 @@ template bool TypeTraitsFloatingPoint::equals(const T a, const T b) /* One of the numbers is zero or both are extremely close to it, relative error is meaningless */ - if (a == T{} || b == T{} || difference < TypeTraits::epsilon()) + if(a == T{} || b == T{} || difference < TypeTraits::epsilon()) return difference < TypeTraits::epsilon(); /* Relative error */