diff --git a/r5dev/thirdparty/spdlog/fmt/bundled/format.h b/r5dev/thirdparty/spdlog/fmt/bundled/format.h index 7c607dbd..1dc2ab61 100644 --- a/r5dev/thirdparty/spdlog/fmt/bundled/format.h +++ b/r5dev/thirdparty/spdlog/fmt/bundled/format.h @@ -1354,8 +1354,8 @@ template constexpr int num_significand_bits() { template constexpr auto exponent_mask() -> typename dragonbox::float_info::carrier_uint { - using uint = typename dragonbox::float_info::carrier_uint; - return ((uint(1) << dragonbox::float_info::exponent_bits) - 1) + using uinty = typename dragonbox::float_info::carrier_uint; + return ((uinty(1) << dragonbox::float_info::exponent_bits) - 1) << num_significand_bits(); } template constexpr auto exponent_bias() -> int { @@ -3248,9 +3248,9 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt { constexpr auto specs = basic_format_specs(); using floaty = conditional_t::value, double, T>; - using uint = typename dragonbox::float_info::carrier_uint; - uint mask = exponent_mask(); - if ((bit_cast(value) & mask) == mask) + using uinty = typename dragonbox::float_info::carrier_uint; + uinty mask = exponent_mask(); + if ((bit_cast(value) & mask) == mask) return write_nonfinite(out, std::isnan(value), specs, fspecs); auto dec = dragonbox::to_decimal(static_cast(value));