]> granicus.if.org Git - curl/commitdiff
typecast constant in comparison
authorYang Tse <yangsita@gmail.com>
Sat, 23 Aug 2008 02:04:55 +0000 (02:04 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 23 Aug 2008 02:04:55 +0000 (02:04 +0000)
lib/mprintf.c

index 2f7f31e29d1cf8e66da39f9e78f5ae86d0ea328f..3f74f26f54d6bbc8776ceff38344ad0fc6f74f11 100644 (file)
@@ -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;