projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ef37aa
)
fix %lf in wprintf
author
Brion Vibber
<brion@pobox.com>
Thu, 12 Sep 2019 05:43:34 +0000
(22:43 -0700)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 13 Sep 2019 18:05:06 +0000
(14:05 -0400)
commit
cc3a4466605fe8dfc31f3b75779110ac93055bc1
fixed this for printf
but neglected to fix wprintf.
Previously, %lf caused a failure to output.
src/stdio/vfwprintf.c
patch
|
blob
|
history
diff --git
a/src/stdio/vfwprintf.c
b/src/stdio/vfwprintf.c
index 0adf0b7a4d85aaee0d40b69b735098c0a55c6510..85b036c3dfe2a3dea61731f6a0f2448c514ac1fb 100644
(file)
--- 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 */