diff --git a/include/boost/decimal/decimal32_fast.hpp b/include/boost/decimal/decimal32_fast.hpp index b650ff2d..b9da5379 100644 --- a/include/boost/decimal/decimal32_fast.hpp +++ b/include/boost/decimal/decimal32_fast.hpp @@ -385,7 +385,7 @@ constexpr decimal32_fast::decimal32_fast(T1 coeff, T2 exp, bool sign) noexcept auto biased_exp {static_cast(exp + detail::bias)}; // Decimal32 exponent holds 8 bits - if (biased_exp > UINT32_C(0xFF)) + if (biased_exp > detail::max_biased_exp_v) { significand_ = detail::d32_fast_inf; }