Fix one bug detected thanks to test case 557.
This commit is contained in:
@@ -720,10 +720,10 @@ static int dprintf_formatf(
|
|||||||
case FORMAT_INT:
|
case FORMAT_INT:
|
||||||
#ifdef HAVE_LONG_LONG_TYPE
|
#ifdef HAVE_LONG_LONG_TYPE
|
||||||
if(p->flags & FLAGS_LONGLONG)
|
if(p->flags & FLAGS_LONGLONG)
|
||||||
num = p->data.lnum;
|
num = (unsigned LONG_LONG_TYPE)p->data.lnum;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
num = p->data.num;
|
num = (unsigned long)p->data.num;
|
||||||
if(p->flags & FLAGS_CHAR) {
|
if(p->flags & FLAGS_CHAR) {
|
||||||
/* Character. */
|
/* Character. */
|
||||||
if(!(p->flags & FLAGS_LEFT))
|
if(!(p->flags & FLAGS_LEFT))
|
||||||
|
|||||||
Reference in New Issue
Block a user