Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2654,8 +2654,9 @@ template <typename OutputIt, typename UInt, typename Char,
inline auto write_significand(OutputIt out, UInt significand,
int significand_size, int integral_size,
Char decimal_point) -> OutputIt {
// Buffer is large enough to hold digits (digits10 + 1) and a decimal point.
Char buffer[digits10<UInt>() + 2];
// Buffer is large enough to hold the full significand, a decimal point,
// and the extra slot used by the write path on GCC 16 with LTO.
Char buffer[digits10<UInt>() + 3];
auto end = write_significand(buffer, significand, significand_size,
integral_size, decimal_point);
return detail::copy_noinline<Char>(buffer, end, out);
Expand Down
Loading