apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <...@manyfish.co.uk>
Subject Re: [PATCH] LFS support for 1.0, take 2
Date Wed, 24 Mar 2004 16:09:01 GMT
On Wed, Mar 24, 2004 at 10:11:29AM -0500, Jeff Trawick wrote:
> Note that these lines now generate a gcc 3.2 warning for casting from a 
> pointer to an integer of a different size (32 bits into 64 bits).  But the 
> Solaris API is such that you have to stuff a pointer to an integer.
> 
> +        sfv[curvec].sfv_off = (apr_off_t)hdtr->trailers[i].iov_base;
> 
> I don't know of an elegant fix to silence the warning.

Oh nasty!  sendfilev64 does actually expect a 32-bit pointer in that
field, though?  Not sure what's needed other than the explicit cast...
(apr_off_t)(unsigned int) ifdef'd for the 32-vs-64 case or something?

joe

Mime
View raw message