apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Problems with testdate
Date Fri, 14 Sep 2007 00:07:47 GMT
On Thu, 2007-09-13 at 09:14 +0100, Joe Orton wrote:

> 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?

The problem is in the second test, where this table isn't used.

The value of "guess" comes from the lgc() function, which can return
values that are out of range (time_t is signed 32-bit number and lgc()
returns unsigned values). Of course, "guess", being apr_time_t, happily
holds whatever apr_uint32_t can muster and more...

-- 
Bojan


Mime
View raw message