diff --git a/include/fmt/format.h b/include/fmt/format.h index cae24f144064..1d4d3cb8cf27 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2260,7 +2260,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value, precision = 1; } if (const_check(std::is_same())) fspecs.binary32 = true; - if (!std::numeric_limits::is_iec559 || std::numeric_limits::digits > 64) + if (const_check(!std::numeric_limits::is_iec559 || std::numeric_limits::digits > 64)) fspecs.fallback = true; int exp = format_float(convert_float(value), precision, fspecs, buffer); fspecs.precision = precision;