diff options
author | Pádraig Brady <P@draigBrady.com> | 2008-06-27 08:38:42 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-27 16:02:54 +0200 |
commit | 0a98d79bd268c47588fc356cb7ea73403780aa20 (patch) | |
tree | 9756e8560818f54306fb4fc704acf8c8b459bc68 /src | |
parent | a67685628504d92b80eabe7cdc02c500f12b4873 (diff) | |
download | coreutils-0a98d79bd268c47588fc356cb7ea73403780aa20.tar.xz |
truncate: silence -Wsign-compare warnings
* src/truncate.c: Cast signed to unsigned to
confirm intent which will silence -Wsign-compare warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/truncate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/truncate.c b/src/truncate.c index 02d41024b..fd321c6c5 100644 --- a/src/truncate.c +++ b/src/truncate.c @@ -189,9 +189,9 @@ do_ftruncate (int fd, char const *fname, off_t ssize, rel_mode_t rel_mode) } if (rel_mode == rm_min) - nsize = MAX (fsize, ssize); + nsize = MAX (fsize, (uintmax_t) ssize); else if (rel_mode == rm_max) - nsize = MIN (fsize, ssize); + nsize = MIN (fsize, (uintmax_t) ssize); else if (rel_mode == rm_rdn) /* 0..ssize-1 -> 0 */ nsize = (fsize / ssize) * ssize; |