commit | 534b7c5c96006365a713a808022363b057a0bf12 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jun 28 22:23:56 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jun 28 22:23:56 2000 +0000 |
tree | c02831a328c071d53306248e28f3717e4da160c5 | |
parent | 1c44e287669c27f4e4f5df6925899d15d8999c12 [diff] |
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