From b051903c3de9d7aad5794d97be665e4990371783 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 10 May 2022 21:17:10 -0700 Subject: [PATCH] fmt: do not define uint type in global namespace --- Externals/fmt/include/fmt/format.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Externals/fmt/include/fmt/format.h b/Externals/fmt/include/fmt/format.h index 7c607dbd30..fef5a5dbf9 100755 --- a/Externals/fmt/include/fmt/format.h +++ b/Externals/fmt/include/fmt/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 fmt_uint = typename dragonbox::float_info::carrier_uint; + return ((fmt_uint(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 fmt_uint = typename dragonbox::float_info::carrier_uint; + fmt_uint 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));