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
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
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
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
-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
> { $$
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 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