From: Brion Vibber Date: Thu, 12 Sep 2019 05:43:34 +0000 (-0700) Subject: fix %lf in wprintf X-Git-Tag: v1.1.24~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f7e464bff4e4a9707a0e9471b1e039363059c8d4;p=oweals%2Fmusl.git fix %lf in wprintf commit cc3a4466605fe8dfc31f3b75779110ac93055bc1 fixed this for printf but neglected to fix wprintf. Previously, %lf caused a failure to output. --- 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 */