diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-19 21:43:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-19 21:43:53 +0000 |
commit | 6e5ea64d09237189c40ba4c2e93523cd8c568830 (patch) | |
tree | 7439660cad0eb3981efe5b4a332849b6ea0e1169 /nuttx/lib | |
parent | 0033159884c130fad47f54ad273d4bdeb74df1d2 (diff) | |
download | px4-nuttx-6e5ea64d09237189c40ba4c2e93523cd8c568830.tar.gz px4-nuttx-6e5ea64d09237189c40ba4c2e93523cd8c568830.tar.bz2 px4-nuttx-6e5ea64d09237189c40ba4c2e93523cd8c568830.zip |
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
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); |