Add %f to src/fmt.c

This commit is contained in:
cpq committed 2022-09-07 15:09:52 +01:00
1 parent 63e0041644
commit 75892cb523
2 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -262,7 +262,7 @@ size_t mg_vxprintf(void (*out)(char, void *), void *param, const char *fmt,
}
if (c == 'p') x = 1, is_long = 1;
if (c == 'd' || c == 'u' || c == 'x' || c == 'X' || c == 'p' ||
c == 'g') {
c == 'g' || c == 'f') {
bool s = (c == 'd'), h = (c == 'x' || c == 'X' || c == 'p');
char tmp[40];
size_t xl = x ? 2 : 0;