diff --git a/libstdc++-v3/src/c++17/floating_to_chars.cc b/libstdc++-v3/src/c++17/floating_to_chars.cc index 6470fbb0b95..3f46bce7a15 100644 --- a/libstdc++-v3/src/c++17/floating_to_chars.cc +++ b/libstdc++-v3/src/c++17/floating_to_chars.cc @@ -977,7 +977,7 @@ template // fd.exponent contain all of the information needed to format the // number in fixed notation "as if by std::printf" (with precision // equal to -fd.exponent). - const int whole_digits = max(mantissa_length + fd.exponent, 1); + const int whole_digits = max(mantissa_length + fd.exponent, 1); const int expected_output_length = fd.sign + whole_digits + strlen(".") + -fd.exponent; if (last - first < expected_output_length)