From bdba6b72218aed92171ef28f434de683b0fa1c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 16 Jan 2013 21:37:50 +0100 Subject: [PATCH] Math: no need to have two versions of denormalize(), they are the same. Overlooked in cade1753042d23d8d83fd3ccb6917f51ead2fc55. --- src/Math/Functions.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Math/Functions.h b/src/Math/Functions.h index 6209b629a..c80fd1eab 100644 --- a/src/Math/Functions.h +++ b/src/Math/Functions.h @@ -129,10 +129,7 @@ integral type. #ifdef DOXYGEN_GENERATING_OUTPUT template inline constexpr typename Integral denormalize(FloatingPoint value); #else -template inline constexpr typename std::enable_if::value && std::is_integral::value && std::is_unsigned::value, Integral>::type denormalize(FloatingPoint value) { - return value*std::numeric_limits::max(); -} -template inline constexpr typename std::enable_if::value && std::is_integral::value && std::is_signed::value, Integral>::type denormalize(FloatingPoint value) { +template inline constexpr typename std::enable_if::value && std::is_integral::value, Integral>::type denormalize(FloatingPoint value) { return value*std::numeric_limits::max(); } #endif