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:
parent
9ce040cfc6
commit
2af231841b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user