Re: time_t on NetBSD/i386

2009-09-17 Thread Paul Eggert
Bruno Haible writes: > Yes. The naming of the variable 'long_int_year_and_yday_are_wide_enough' > sounds as if Paul intended to be able to pass time_t values into 'year1' > and 'yday1'. But this does not happen: all inputs are 'int'. Sorry about the long delay. It's been many years, but I think

Re: time_t on NetBSD/i386

2009-09-17 Thread Jim Meyering
Bruno Haible wrote: > Jim Meyering wrote: >> >> time_t is 64 bits in recent NetBSD versions even on i386 platform, >> >> therefore these assertations fail on it: >> >> >> >> in lib/mktime.c: >> >> verify (long_int_year_and_yday_are_wide_enough, >> >> INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UIN

Re: time_t on NetBSD/i386

2009-09-17 Thread Bruno Haible
Jim Meyering wrote: > >> time_t is 64 bits in recent NetBSD versions even on i386 platform, > >> therefore these assertations fail on it: > >> > >> in lib/mktime.c: > >> verify (long_int_year_and_yday_are_wide_enough, > >> INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); > > > > I'm disablin

Re: time_t on NetBSD/i386

2009-09-17 Thread Jim Meyering
Bruno Haible wrote: > Hasso Tepper wrote: >> time_t is 64 bits in recent NetBSD versions even on i386 platform, >> therefore these assertations fail on it: >> >> in lib/mktime.c: >> verify (long_int_year_and_yday_are_wide_enough, >> INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); > > I'm di

Re: time_t on NetBSD/i386

2009-09-17 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 9/17/2009 1:38 AM: > Here is a proposed patch. I checked all uses of 'time_t' in getdate.y and > found only two conversions from time_t to 'long int', in the 'relunit' rule: > > | tSDECIMAL_NUMBER tSEC_UNIT > { $$

Re: time_t on NetBSD/i386

2009-09-17 Thread Bruno Haible
Hasso Tepper wrote: > time_t is 64 bits in recent NetBSD versions even on i386 platform, > therefore these assertations fail on it: > > in lib/mktime.c: > verify (long_int_year_and_yday_are_wide_enough, > INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); I'm disabling this assertion; the c

time_t on NetBSD/i386

2009-09-16 Thread Hasso Tepper
time_t is 64 bits in recent NetBSD versions even on i386 platform, therefore these assertations fail on it: in lib/mktime.c: verify (long_int_year_and_yday_are_wide_enough, INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); in lib/getdate.y: verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE