diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-16 05:14:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-16 05:14:00 +0000 |
commit | 03cc8c8ca345b5847d1611c197721269fcb5f281 (patch) | |
tree | f563cf251004168ef6981141980b8ff000eda80f /src/od.c | |
parent | dc84f5c5c9bae325bf3f52d3ed5ca0a6b070aa51 (diff) | |
download | coreutils-03cc8c8ca345b5847d1611c197721269fcb5f281.tar.xz |
[OFF_T_MAX]: Use `(unsigned long)1' rather than `(off_t)1'
so the left operand of the << isn't signed.
From Kaveh Ghazi.
Diffstat (limited to 'src/od.c')
-rw-r--r-- | src/od.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -85,7 +85,8 @@ typedef double LONG_DOUBLE; #endif #ifndef OFF_T_MAX -# define OFF_T_MAX ((off_t)(~((off_t)1 << (sizeof (off_t) * BITSPERBYTE - 1)))) +# define OFF_T_MAX ((off_t)(~((unsigned long)1 << (sizeof (off_t) + * BITSPERBYTE - 1)))) #endif #define STREQ(a,b) (strcmp((a), (b)) == 0) |