[Zlib-devel] zlib 1.2.4 released

Mark Adler madler at alumni.caltech.edu
Fri Mar 12 21:14:01 EST 2010


On Mar 12, 2010, at 2:57 PM, Vincent Torri wrote:
> just a note on Win64, in case you don't know: contrary to all other 64 bits arch, a lont int is not 64 bits long, but 32 bits long. I don't know if you use long int as the size of a pointer, but be aware of that.

The code makes no assumptions about the relative size of pointers and longs or ints (as far as I know).  Sometimes the difference between two pointers is stored in a type that may be smaller than a pointer, but only when it is known that it will fit.  The only assumption is that a long is at least 32 bits and that a short is at least 16 bits.

Mark





More information about the Zlib-devel mailing list