summaryrefslogtreecommitdiff
path: root/tests/get-mb-cur-max.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2010-03-31 10:03:16 +0200
committerPaolo Bonzini <bonzini@gnu.org>2010-03-31 10:03:35 +0200
commit2c51cf6c4d088f4cabaa815754e1737ad1db052d (patch)
tree028756ea8c466aebc986459382178666ee2214b0 /tests/get-mb-cur-max.c
parentbd363e731b1b022657b4266bc3267eeeeee398f9 (diff)
downloadgrep-2c51cf6c4d088f4cabaa815754e1737ad1db052d.tar.gz
tests: fix -Wformat failure
* tests/get-mb-cur-max (main): Cast MB_CUR_MAX to int.
Diffstat (limited to 'tests/get-mb-cur-max.c')
-rw-r--r--tests/get-mb-cur-max.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/get-mb-cur-max.c b/tests/get-mb-cur-max.c
index 3ba73893..48e2713a 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);
}