diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-04-27 10:44:25 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-04-27 10:55:26 +0100 |
commit | 0e7ac9a4609248663af76f202418dabf1c13efbe (patch) | |
tree | acefcdcd41c30c14925d3e5e904a27653bbadcdb /src/make-prime-list.c | |
parent | 17fba994bd1620ab5d4bdaeda797c6071f6130b7 (diff) | |
download | coreutils-0e7ac9a4609248663af76f202418dabf1c13efbe.tar.xz |
maint: fix printf format for signed integers
With GCC 5 and the newly added warnings from gnulib, ensure the
correct signed integer is passed for the printf format,
to avoid -Werror=format= failures.
Diffstat (limited to 'src/make-prime-list.c')
-rw-r--r-- | src/make-prime-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/make-prime-list.c b/src/make-prime-list.c index 69b91e895..b31e1ed26 100644 --- a/src/make-prime-list.c +++ b/src/make-prime-list.c @@ -131,7 +131,7 @@ output_primes (const struct prime *primes, unsigned nprimes) abort (); printf ("P (%u, %u,\n (", primes[i].p - p, d8); print_wide_uint (primes[i].pinv, 0, wide_uint_bits); - printf ("),\n UINTMAX_MAX / %d)\n", primes[i].p); + printf ("),\n UINTMAX_MAX / %u)\n", primes[i].p); p = primes[i].p; } |