We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d74ea1 commit 4eb109fCopy full SHA for 4eb109f
include/st_formatter.h
@@ -441,10 +441,8 @@ namespace ST
441
442
if (format.precision >= 0) {
443
format_buffer[end++] = '.';
444
- if (format.precision < 0)
445
- format_buffer[end++] = '-';
446
ST::uint_formatter<unsigned int> prec;
447
- prec.format(std::abs(format.precision), 10);
+ prec.format(format.precision, 10);
448
std::char_traits<char>::move(format_buffer + end, prec.text(), prec.size());
449
450
// Ensure one more space (excluding \0) is available for the format specifier
0 commit comments