25845f
commit d22ce01becae90db0c65c82fd2e1aa7898df7ce6
25845f
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
25845f
Date:   Wed Dec 17 16:43:34 2014 +0100
25845f
25845f
    Get rid of format warning in bug-vfprintf-nargs.c.
25845f
25845f
diff --git a/stdio-common/bug-vfprintf-nargs.c b/stdio-common/bug-vfprintf-nargs.c
25845f
index 4f621064cc0ca5c7..e8651823e6096c0e 100644
25845f
--- a/stdio-common/bug-vfprintf-nargs.c
25845f
+++ b/stdio-common/bug-vfprintf-nargs.c
25845f
@@ -65,7 +65,8 @@ do_test (void)
25845f
      test this on 32-bit systems.  */
25845f
   if (sizeof (long int) == 4)
25845f
     {
25845f
-      sprintf (buf, "%%1$d %%%" PRIdPTR "$d", UINT32_MAX / sizeof (int));
25845f
+      sprintf (buf, "%%1$d %%%" PRIdPTR "$d",
25845f
+	       (intptr_t) (UINT32_MAX / sizeof (int)));
25845f
       if (format_failed (buf, "1 %$d") != 0)
25845f
         rc = 1;
25845f
     }