From 2af231841b911bd6fb463025da066453ff7f80ee Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 19 Mar 2007 21:43:53 +0000 Subject: [PATCH] long and long long have the same problem as integer git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@104 42af7a65-404d-4744-a932-0658087f49c3 --- lib/lib_libvsprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lib_libvsprintf.c b/lib/lib_libvsprintf.c index 65b75e1346..827a1a05b1 100644 --- a/lib/lib_libvsprintf.c +++ b/lib/lib_libvsprintf.c @@ -705,7 +705,7 @@ static void lfixup(ubyte fmt, ubyte *flags, long *ln) case 'i': /* Signed base 10 */ - if (ln < 0) + if (*ln < 0) { SET_NEGATE(*flags); CLR_SHOWPLUS(*flags); @@ -955,7 +955,7 @@ static void llfixup(ubyte fmt, ubyte *flags, long long *lln) case 'i': /* Signed base 10 */ - if (lln < 0) + if (*lln < 0) { SET_NEGATE(*flags); CLR_SHOWPLUS(*flags);