We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f3b99c commit dcd28abCopy full SHA for dcd28ab
1 file changed
src/fptostring.cpp
@@ -131,7 +131,7 @@ std::string FpToString(T v, int precision = 0) {
131
132
// Case 1 - scientific notation: max digits of size_t plus sign, a dot and 2 letters for 'e+' or 'e-' and 4 letters for the exponent
133
// Case 2 - default notation: require up to precision number of digits and one for a potential sign
134
- std::array<char, 28> output_buffer;
+ std::array<char, 32> output_buffer;
135
auto output_ptr = &output_buffer[0];
136
137
// Helper variable that in Case 2 counts the overflowing number of zeros that do not fit into the buffer.
0 commit comments