1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Fix one bug detected thanks to test case 557.

This commit is contained in:
Yang Tse 2008-08-21 00:12:03 +00:00
parent 5794ffe4bd
commit f209a4804b

View File

@ -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))