On Wed, Jan 07, 2009 at 01:51:40PM -0500, Robert Huff wrote: > > Is there a good guide anywhere to writing 64-bit-clean code? > Something that's thorough but understandable, possibly with examples > of the trickier bits.
Do not assume that the size of a void* equals the size of an integer and you're probably halfway there. For the rest, searching for '64-bit-clean' will give you thousands of links. Test your code on both a 64-bit and 32-bit machine. One of them can be a virtual machine, of course. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
pgpyyKltptdSo.pgp
Description: PGP signature