[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: fix -Wformat failure
From: |
Paolo Bonzini |
Subject: |
[PATCH] tests: fix -Wformat failure |
Date: |
Wed, 31 Mar 2010 10:03:23 +0200 |
* tests/get-mb-cur-max (main): Cast MB_CUR_MAX to int.
---
tests/get-mb-cur-max.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/get-mb-cur-max.c b/tests/get-mb-cur-max.c
index 3ba7389..48e2713 100644
--- a/tests/get-mb-cur-max.c
+++ b/tests/get-mb-cur-max.c
@@ -29,7 +29,7 @@ main (int argc, char **argv)
set_program_name (argv[0]);
if (setlocale (LC_ALL, argv[1]))
{
- printf ("%d\n", MB_CUR_MAX);
+ printf ("%d\n", (int) MB_CUR_MAX);
exit (EXIT_SUCCESS);
}
--
1.6.6.1
- [PATCH] tests: fix -Wformat failure,
Paolo Bonzini <=