From d560ddac25809020157ca98e6b3f55190a12774c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 8 Mar 2019 19:09:05 -0800 Subject: [PATCH] Temporarily disable Grisu for fixed formatting --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 6923df55..07f84c6e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2888,7 +2888,7 @@ void basic_writer::write_double(T value, const format_specs& spec) { if (handler.as_percentage) value *= 100.; bool use_grisu = fmt::internal::use_grisu() && - (!spec.type || handler.fixed) && + !spec.type && internal::grisu2_format(static_cast(value), buffer, precision, handler.fixed, exp); if (!use_grisu) internal::sprintf_format(value, buffer, spec);