From: Yang Tse Date: Thu, 21 Aug 2008 00:12:03 +0000 (+0000) Subject: Fix one bug detected thanks to test case 557. X-Git-Tag: curl-7_19_0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f209a4804b812970a82275216a2c448c5232906a;p=thirdparty%2Fcurl.git Fix one bug detected thanks to test case 557. --- diff --git a/lib/mprintf.c b/lib/mprintf.c index f9e0c8764d..41cb6777f1 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -720,10 +720,10 @@ static int dprintf_formatf( case FORMAT_INT: #ifdef HAVE_LONG_LONG_TYPE if(p->flags & FLAGS_LONGLONG) - num = p->data.lnum; + num = (unsigned LONG_LONG_TYPE)p->data.lnum; else #endif - num = p->data.num; + num = (unsigned long)p->data.num; if(p->flags & FLAGS_CHAR) { /* Character. */ if(!(p->flags & FLAGS_LEFT))