diff options
-rw-r--r-- | libstdc++-v3/src/c++17/floating_to_chars.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++17/floating_to_chars.cc b/libstdc++-v3/src/c++17/floating_to_chars.cc index 6470fbb..3f46bce 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<typename T> // 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<int>(mantissa_length + fd.exponent, 1); const int expected_output_length = fd.sign + whole_digits + strlen(".") + -fd.exponent; if (last - first < expected_output_length) |