aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2014-12-17 16:43:34 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-12-17 16:43:34 +0100
commitd22ce01becae90db0c65c82fd2e1aa7898df7ce6 (patch)
treec2dfa69f9246b7e9a1c30bae5c6e35e70740b9d0 /stdio-common
parenteca2772b9a2b057a1af6604afb9b5d3ce3448497 (diff)
downloadglibc-d22ce01becae90db0c65c82fd2e1aa7898df7ce6.tar
glibc-d22ce01becae90db0c65c82fd2e1aa7898df7ce6.tar.gz
glibc-d22ce01becae90db0c65c82fd2e1aa7898df7ce6.tar.bz2
glibc-d22ce01becae90db0c65c82fd2e1aa7898df7ce6.zip
Get rid of format warning in bug-vfprintf-nargs.c.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/bug-vfprintf-nargs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/bug-vfprintf-nargs.c b/stdio-common/bug-vfprintf-nargs.c
index c7e7f0b8b4..75349671a1 100644
--- a/stdio-common/bug-vfprintf-nargs.c
+++ b/stdio-common/bug-vfprintf-nargs.c
@@ -65,7 +65,8 @@ do_test (void)
test this on 32-bit systems. */
if (sizeof (long int) == 4)
{
- sprintf (buf, "%%1$d %%%" PRIdPTR "$d", UINT32_MAX / sizeof (int));
+ sprintf (buf, "%%1$d %%%" PRIdPTR "$d",
+ (intptr_t) (UINT32_MAX / sizeof (int)));
if (format_failed (buf, "1 %$d") != 0)
rc = 1;
}