LibC: Fix printf zero padding on floats

This commit is contained in:
2026-07-04 04:50:29 +03:00
parent e717b95df0
commit c9b3d50523

View File

@@ -661,7 +661,7 @@ extern "C" int printf_impl(const char* format, va_list arguments, int (*putc_fun
if (!options.left_justified) if (!options.left_justified)
for (int i = length; i < options.width; i++) for (int i = length; i < options.width; i++)
BAN_PRINTF_PUTC(' '); BAN_PRINTF_PUTC(options.zero_padded ? '0' : ' ');
for (int i = 0; i < length; i++) for (int i = 0; i < length; i++)
BAN_PRINTF_PUTC(string[i]); BAN_PRINTF_PUTC(string[i]);