diff options
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_libvsprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/lib/lib_libvsprintf.c b/nuttx/lib/lib_libvsprintf.c index 65b75e134..827a1a05b 100644 --- a/nuttx/lib/lib_libvsprintf.c +++ b/nuttx/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); |