diff options
author | Guido van Rossum <guido@python.org> | 2000-06-28 22:23:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-06-28 22:23:56 (GMT) |
commit | 534b7c5c96006365a713a808022363b057a0bf12 (patch) | |
tree | c02831a328c071d53306248e28f3717e4da160c5 /Modules/posixmodule.c | |
parent | 1c44e287669c27f4e4f5df6925899d15d8999c12 (diff) | |
download | cpython-534b7c5c96006365a713a808022363b057a0bf12.zip cpython-534b7c5c96006365a713a808022363b057a0bf12.tar.gz cpython-534b7c5c96006365a713a808022363b057a0bf12.tar.bz2 |
Trent Mick:
This patch fixes cPickle.c for 64-bit platforms.
- The false assumption sizeof(long) == size(void*) exists where
PyInt_FromLong is used to represent a pointer. The safe Python call
for this is PyLong_FromVoidPtr. (On platforms where the above
assumption *is* true a PyInt is returned as before so there is no
effective change.)
- use size_t instead of int for some variables
Diffstat (limited to 'Modules/posixmodule.c')
0 files changed, 0 insertions, 0 deletions