mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix %lf, etc. with printf
the l prefix is redundant/no-op with printf, since default promotions always promote floats to double; however, it is valid, and printf was wrongly rejecting it.
This commit is contained in:
parent
9d2a15a64e
commit
cc3a446660
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,8 @@ static const unsigned char states[]['z'-'A'+1] = {
|
|||
}, { /* 1: l-prefixed */
|
||||
S('d') = LONG, S('i') = LONG,
|
||||
S('o') = ULONG, S('u') = ULONG, S('x') = ULONG, S('X') = ULONG,
|
||||
S('e') = DBL, S('f') = DBL, S('g') = DBL, S('a') = DBL,
|
||||
S('E') = DBL, S('F') = DBL, S('G') = DBL, S('A') = DBL,
|
||||
S('c') = INT, S('s') = PTR, S('n') = PTR,
|
||||
S('l') = LLPRE,
|
||||
}, { /* 2: ll-prefixed */
|
||||
|
|
Loading…
Add table
Reference in a new issue