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/factor.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/factor.c')
-rw-r--r-- | src/factor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factor.c b/src/factor.c index f6945342d..4e4d0c7cb 100644 --- a/src/factor.c +++ b/src/factor.c @@ -2337,7 +2337,7 @@ print_uintmaxes (uintmax_t t1, uintmax_t t0) r = t1 % 1000000000; udiv_qrnnd (t0, r, r, t0, 1000000000); print_uintmaxes (q, t0); - printf ("%09u", (int) r); + printf ("%09u", (unsigned int) r); } } |