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