From 8cb9198bcf0d88cf0597a5885cf8efc5132ef214 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 18 Sep 2014 09:43:11 +0200 Subject: [PATCH] allow a 64bit base type --- DataStructures/FixedPointNumber.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/FixedPointNumber.h b/DataStructures/FixedPointNumber.h index a30e74ee4..8ad687afb 100644 --- a/DataStructures/FixedPointNumber.h +++ b/DataStructures/FixedPointNumber.h @@ -51,13 +51,13 @@ class FixedPointNumber constexpr static const int32_t PRECISION = 1 << FractionalBitSize; - int32_t m_fixed_point_state; + typename std::conditional::type m_fixed_point_state; // state signage encapsulates whether the state should either represent a // signed or an unsigned floating point number using state_signage = typename std::conditional::type, + typename std::make_unsigned::type, decltype(m_fixed_point_state)>::type; public: