Replace use_grisu with fallback since Grisu is only one of multiple implemented algorithms

This commit is contained in:
Victor Zverovich
2021-09-26 08:44:05 -07:00
parent 716d69f27e
commit 027fcaf05e
3 changed files with 3 additions and 3 deletions

View File

@@ -2375,7 +2375,7 @@ FMT_HEADER_ONLY_CONSTEXPR20 int format_float(Float value, int precision,
return -precision;
}
if (!specs.use_grisu) return snprintf_float(value, precision, specs, buf);
if (specs.fallback) return snprintf_float(value, precision, specs, buf);
if (!is_constant_evaluated() && precision < 0) {
// Use Dragonbox for the shortest format.