apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Problems with testdate
Date Thu, 13 Sep 2007 08:14:46 GMT
On Mon, Sep 10, 2007 at 02:09:43PM +1000, Bojan Smojver wrote:
> Just bumped into this today, but it seems that in function
> gm_timestr_822() of testdate.c, we are stuffing a 64-bit value
> (apr_time_t) into something may be a lot shorter (time_t). So, errors
> start occurring and test fails (Fedora 7, i686). I was thinking that we
> should patch the test along the lines of the attached.

It looks like the range of the test is supposed to be limited by that of 
a 32-bit time_t, given the range of dates in year2secs.  If you make 
that array simply an array of time_t or apr_int32_t, and drop the 
INT64_C() casts, does it work?


View raw message