From a86569deeeea7c1a65fc198d87491a081ad044e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 26 Oct 2002 00:59:16 +0000 Subject: [PATCH] There were two positions where I had to change those values. %lld and %Ld should now finally work (thanks to Marcus). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1673 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/stdio/vfprintf.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/kernel/libroot/posix/stdio/vfprintf.c b/src/kernel/libroot/posix/stdio/vfprintf.c index 2ab1d0bf9f..31aa64b935 100644 --- a/src/kernel/libroot/posix/stdio/vfprintf.c +++ b/src/kernel/libroot/posix/stdio/vfprintf.c @@ -416,11 +416,13 @@ reswitch: switch (ch) { } width = n; goto reswitch; -#ifdef FLOATING_POINT case 'L': - flags |= LONGDBL; - goto rflag; + flags |= QUADINT +#ifdef FLOATING_POINT + | LONGDBL #endif + ; + goto rflag; case 'h': flags |= SHORTINT; goto rflag; @@ -898,18 +900,20 @@ reswitch: switch (ch) { case 'L': flags |= QUADINT #ifdef FLOATING_POINT - LONGDBL + | LONGDBL #endif - ; + ; goto rflag; case 'h': flags |= SHORTINT; goto rflag; case 'l': - if (flags & LONGINT) + if (*fmt == 'l') { + fmt++; flags |= QUADINT; - else + } else flags |= LONGINT; + goto rflag; case 'q': flags |= QUADINT;