summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2019-09-11 22:43:34 -0700
committerRich Felker <dalias@aerifal.cx>2019-09-13 14:05:06 -0400
commitf7e464bff4e4a9707a0e9471b1e039363059c8d4 (patch)
tree4bce5ade2633f34b86bdc0cce506c98083cfa819
parent1ef37aa00ea830dfda76e04e3d941cafa74d8b76 (diff)
downloadmusl-f7e464bff4e4a9707a0e9471b1e039363059c8d4.tar.gz
fix %lf in wprintf
commit cc3a4466605fe8dfc31f3b75779110ac93055bc1 fixed this for printf but neglected to fix wprintf. Previously, %lf caused a failure to output.
-rw-r--r--src/stdio/vfwprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c
index 0adf0b7a..85b036c3 100644
--- a/src/stdio/vfwprintf.c
+++ b/src/stdio/vfwprintf.c
@@ -53,6 +53,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 */