From 3b76862f6969a135c0b4cae024364341e9d4b487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 25 Dec 2014 17:57:01 +0100 Subject: [PATCH] Math: minor cleanup. --- src/Magnum/Math/TypeTraits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */