diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-21 00:12:03 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-21 00:12:03 +0000 |
commit | f209a4804b812970a82275216a2c448c5232906a (patch) | |
tree | 1d0dbf0b16bfddbbf666685fc3e4c860e83de292 | |
parent | 5794ffe4bd75b4d0086a11c222884405bdc35839 (diff) |
Fix one bug detected thanks to test case 557.
-rw-r--r-- | lib/mprintf.c | 4 |
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)) |