httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Mike Abbott)
Subject Re: [PATCH] 10x performance increase patch #1
Date Mon, 12 Jul 1999 23:28:16 GMT
> In your docs for printf you suggest using the long forms of everything,
> such as %lu ... and then casting to (long).  Unfortunately, this doesn't
> work on the other families of 64-bit systems where long is 32-bits, and
> long long is 64-bits... and the cast removes the warnings, so the bug is
> lost. 

Good point.  I am unfamiliar with any 64-bit systems having 32-bit
longs.  I thought LP64 was the most common model.

> But I can't think of a clean solution -- except to stop using printf-like
> routines.

Cast everything to long long and use %llu? :)
Michael J. Abbott

View raw message