[Python-3000-checkins] r55337 - python/branches/p3yk/Modules/cPickle.c
neal.norwitz
python-3000-checkins at python.org
Tue May 15 07:28:29 CEST 2007
Author: neal.norwitz
Date: Tue May 15 07:28:27 2007
New Revision: 55337
Modified:
python/branches/p3yk/Modules/cPickle.c
Log:
Get test_[cx]pickle working on 64-bit platforms (avoid overflow int/long)
Modified: python/branches/p3yk/Modules/cPickle.c
==============================================================================
--- python/branches/p3yk/Modules/cPickle.c (original)
+++ python/branches/p3yk/Modules/cPickle.c Tue May 15 07:28:27 2007
@@ -1031,7 +1031,7 @@
Py_ssize_t size;
int res = -1;
PyObject *repr = NULL;
- int val = PyInt_AsLong(args);
+ long val = PyInt_AsLong(args);
static char l = LONG;
if (val == -1 && PyErr_Occurred()) {
More information about the Python-3000-checkins
mailing list