truncate: Fix integer portability issues
authorPádraig Brady <P@draigBrady.com>
Thu, 26 Jun 2008 10:10:13 +0000 (11:10 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 27 Jun 2008 06:11:21 +0000 (08:11 +0200)
commite2dbcee444e90e4289bd4bdc36783a5ef00af396
treef5973cdb26c2e9d1f271b0c4bad69aae62dcac59
parent8ce745dc612b21c01439da9a0ca217054841d177
truncate: Fix integer portability issues

* src/truncate.c: Explicitly convert from off_t to intmax_t
when printing numbers as they may be different types.
Also don't mix size_t and off_t types in operations as
the latter will be promoted to unsigned when these types
are the same size.
src/truncate.c