From 9f7c11710f026febe81a0a37a6be2d5156a914d7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Jun 2019 09:46:39 +0200 Subject: [PATCH] printf: Treat %g as %f for now. --- AK/PrintfImplementation.h | 1 + 1 file changed, 1 insertion(+) diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h index 087eb34d437..a115f78c19b 100644 --- a/AK/PrintfImplementation.h +++ b/AK/PrintfImplementation.h @@ -243,6 +243,7 @@ template break; #ifndef KERNEL + case 'g': case 'f': // FIXME: Print as float! ret += print_number(putch, bufptr, (int)va_arg(ap, double), leftPad, zeroPad, fieldWidth);