From 578f42d588a5698f6488a11dd880acb592ca524c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 23 Aug 2008 02:04:55 +0000 Subject: typecast constant in comparison --- lib/mprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3