mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 10:51:48 +02:00
[OFF_T_MAX]: Use (unsigned long)1' rather than (off_t)1'
so the left operand of the << isn't signed. From Kaveh Ghazi.
This commit is contained in:
3
src/od.c
3
src/od.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user