crt: Don't print a leading '+' for format strings like "%+u" For unsigned print formats like %u, %o and %x, don't print a leading plus. It wasn't printed for %+o and %+x, but %+u did print one. Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/stdio/mingw_pformat.c b/mingw-w64-crt/stdio/mingw_pformat.c index a68d0f6..b1c139b 100644 --- a/mingw-w64-crt/stdio/mingw_pformat.c +++ b/mingw-w64-crt/stdio/mingw_pformat.c
@@ -2492,6 +2492,7 @@ /* * Unsigned integer values; octal, decimal or hexadecimal format... */ + stream.flags &= ~PFORMAT_POSITIVE; #if __ENABLE_PRINTF128 argval.__pformat_u128_t.t128.digits[1] = 0LL; /* no sign extend needed */ if( length == PFORMAT_LENGTH_LLONG128 )