diff --git a/src/yycc/patch/libcxx/charconv.hpp b/src/yycc/patch/libcxx/charconv.hpp index c87077b..de1795c 100644 --- a/src/yycc/patch/libcxx/charconv.hpp +++ b/src/yycc/patch/libcxx/charconv.hpp @@ -270,7 +270,7 @@ namespace std { // Float to_chars template requires std::floating_point - to_chars_result to_chars(char* first, char* last, T value, chars_format fmt, int precision = 0) { + to_chars_result to_chars(char* first, char* last, T value, chars_format fmt, int precision = 6) { if (first >= last) { return {first, std::errc::value_too_large}; }