diff options
author | Jim Meyering <jim@meyering.net> | 1997-03-14 03:28:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-03-14 03:28:09 +0000 |
commit | effc683cfcc2bb508895bfd0e7619b2188fe9b86 (patch) | |
tree | 604d64bceab68e24dd99255869a9dccc32d90940 /lib | |
parent | 898fd10ec0871fd289d6894740d0c70a35d44ec2 (diff) | |
download | coreutils-effc683cfcc2bb508895bfd0e7619b2188fe9b86.tar.xz |
(TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mktime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mktime.c b/lib/mktime.c index e5e7c745d..34112a9a0 100644 --- a/lib/mktime.c +++ b/lib/mktime.c @@ -75,8 +75,10 @@ #endif #ifndef TIME_T_MIN -#define TIME_T_MIN (0 < (time_t) -1 ? (time_t) 0 \ - : ~ (time_t) 0 << (sizeof (time_t) * CHAR_BIT - 1)) +/* The outer cast to time_t works around a bug in Cray C 5.0.3.0. */ +#define TIME_T_MIN ((time_t) \ + (0 < (time_t) -1 ? (time_t) 0 \ + : ~ (time_t) 0 << (sizeof (time_t) * CHAR_BIT - 1))) #endif #ifndef TIME_T_MAX #define TIME_T_MAX (~ (time_t) 0 - TIME_T_MIN) |