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
This commit is contained in:
patacongo 2007-03-19 21:43:53 +00:00
parent 9ce040cfc6
commit 2af231841b

View File

@ -705,7 +705,7 @@ static void lfixup(ubyte fmt, ubyte *flags, long *ln)
case 'i': case 'i':
/* Signed base 10 */ /* Signed base 10 */
if (ln < 0) if (*ln < 0)
{ {
SET_NEGATE(*flags); SET_NEGATE(*flags);
CLR_SHOWPLUS(*flags); CLR_SHOWPLUS(*flags);
@ -955,7 +955,7 @@ static void llfixup(ubyte fmt, ubyte *flags, long long *lln)
case 'i': case 'i':
/* Signed base 10 */ /* Signed base 10 */
if (lln < 0) if (*lln < 0)
{ {
SET_NEGATE(*flags); SET_NEGATE(*flags);
CLR_SHOWPLUS(*flags); CLR_SHOWPLUS(*flags);