scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 0c80fe8e83971be5be76a2d67892270537914f90
parent a06980e91b715ab72c56024930712c5af8390da5
Author: Michael Forney <mforney@mforney.org>
Date:   Sun,  3 Oct 2021 03:12:11 -0700

libc: Add break in floating-point printf TODO case

This way, nothing is printed instead of falling through to the 's'
case and trying to print the argument as a string.

Diffstat:
Msrc/libc/stdio/vfprintf.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/libc/stdio/vfprintf.c b/src/libc/stdio/vfprintf.c @@ -341,6 +341,7 @@ flags: case 'g': case 'G': /* TODO */ + break; case 's': if (flags & LONG) { ws = va_arg(va2, wchar_t *);