From f209a4804b812970a82275216a2c448c5232906a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 21 Aug 2008 00:12:03 +0000 Subject: Fix one bug detected thanks to test case 557. --- lib/mprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mprintf.c b/lib/mprintf.c index f9e0c8764..41cb6777f 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)) -- cgit v1.2.3