trailing_zeros -> showpoint

This commit is contained in:
Victor Zverovich
2019-12-18 12:12:09 -08:00
parent d7e72a09e0
commit 1b1c70108a
3 changed files with 11 additions and 10 deletions

View File

@@ -1106,7 +1106,7 @@ int snprintf_float(T value, int precision, float_specs specs,
char format[max_format_size];
char* format_ptr = format;
*format_ptr++ = '%';
if (specs.trailing_zeros) *format_ptr++ = '#';
if (specs.showpoint) *format_ptr++ = '#';
if (precision >= 0) {
*format_ptr++ = '.';
*format_ptr++ = '*';