diff --git a/libstdc++-v3/src/c++17/floating_to_chars.cc b/libstdc++-v3/src/c++17/floating_to_chars.cc index aea96e08df1..f1512017aa3 100644 --- a/libstdc++-v3/src/c++17/floating_to_chars.cc +++ b/libstdc++-v3/src/c++17/floating_to_chars.cc @@ -1151,7 +1151,7 @@ template // Ryu doesn't support formatting floating-point types larger than double // with an explicit precision, so instead we just go through printf. - if constexpr (is_same_v) + if constexpr (is_same_v || is_same_v) { int effective_precision; const char* output_specifier;