Non-negative amounts should not have an extra space in front of them
when the `(' flag is used.
This commit is contained in:
parent
284d56227c
commit
40a48101d3
@ -291,12 +291,8 @@ strfmon(char * __restrict s, size_t maxsize, const char * __restrict format,
|
||||
while (pad_size-- > 0)
|
||||
PRINT(' ');
|
||||
|
||||
if (sign_posn == 0) {
|
||||
if (flags & IS_NEGATIVE)
|
||||
PRINT('(');
|
||||
else
|
||||
PRINT(' ');
|
||||
}
|
||||
if (sign_posn == 0 && (flags & IS_NEGATIVE))
|
||||
PRINT('(');
|
||||
|
||||
if (cs_precedes == 1) {
|
||||
if (sign_posn == 1 || sign_posn == 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user