diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-23 02:04:55 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-23 02:04:55 +0000 |
commit | 578f42d588a5698f6488a11dd880acb592ca524c (patch) | |
tree | 38364943ed9a9b4d6bb4665b7c352cd5439c615e /lib/mprintf.c | |
parent | e3ad6d2bd111d12ba0019a916270950cf83956bf (diff) | |
download | curl-578f42d588a5698f6488a11dd880acb592ca524c.tar.gz |
typecast constant in comparison
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r-- | lib/mprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 2f7f31e29..3f74f26f5 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -763,7 +763,7 @@ static int dprintf_formatf( /* Decimal integer. */ base = 10; - is_neg = p->data.num.as_signed < 0; + is_neg = (p->data.num.as_signed < (mp_intmax_t)0); if(is_neg) { /* signed_num might fail to hold absolute negative minimum by 1 */ signed_num = p->data.num.as_signed + (mp_intmax_t)1; |