From 27fdb4ead2006c6da4599229222ad88938fdbfdd Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 20 Oct 2020 15:05:00 -0700 Subject: [PATCH] Unshadow floaty --- include/fmt/format.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index cdd30e49..b98c3004 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1946,8 +1946,8 @@ template ::value, double, T>; - using uint = typename dragonbox::float_info::carrier_uint; + using floaty = conditional_t::value, double, T>; + using uint = typename dragonbox::float_info::carrier_uint; auto bits = bit_cast(value); auto fspecs = float_specs(); @@ -1958,11 +1958,11 @@ OutputIt write(OutputIt out, T value) { } static const auto specs = basic_format_specs(); - uint mask = exponent_mask(); + uint mask = exponent_mask(); if ((bits & mask) == mask) return write_nonfinite(out, std::isinf(value), specs, fspecs); - auto dec = dragonbox::to_decimal(static_cast(value)); + auto dec = dragonbox::to_decimal(static_cast(value)); return write_float(out, dec, specs, fspecs, static_cast('.')); }