diff options
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/bug-vfprintf-nargs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/bug-vfprintf-nargs.c b/stdio-common/bug-vfprintf-nargs.c index c7e7f0b..7534967 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; } |