Mercurial > hg > octave-kai > gnulib-hg
changeset 897:44fc4c3509eb
(TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 14 Mar 1997 03:28:09 +0000 |
parents | 43c2fe6f45d5 |
children | 314f3c3e1e50 |
files | lib/mktime.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)