1
0
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:
Jim Meyering
1996-07-16 05:14:00 +00:00
parent dc84f5c5c9
commit 03cc8c8ca3

View File

@@ -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)