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: