aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-21 00:12:03 +0000
committerYang Tse <yangsita@gmail.com>2008-08-21 00:12:03 +0000
commitf209a4804b812970a82275216a2c448c5232906a (patch)
tree1d0dbf0b16bfddbbf666685fc3e4c860e83de292
parent5794ffe4bd75b4d0086a11c222884405bdc35839 (diff)
Fix one bug detected thanks to test case 557.
-rw-r--r--lib/mprintf.c4
1 files 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))