[Python-checkins] r60297 - python/branches/release25-maint/Objects/listobject.c
thomas.wouters
python-checkins at python.org
Fri Jan 25 20:51:25 CET 2008
Author: thomas.wouters
Date: Fri Jan 25 20:51:24 2008
New Revision: 60297
Modified:
python/branches/release25-maint/Objects/listobject.c
Log:
Use the right (portable) definition of the max of a Py_ssize_t.
Modified: python/branches/release25-maint/Objects/listobject.c
==============================================================================
--- python/branches/release25-maint/Objects/listobject.c (original)
+++ python/branches/release25-maint/Objects/listobject.c Fri Jan 25 20:51:24 2008
@@ -672,7 +672,7 @@
return (PyObject *)self;
}
- if (size > SSIZE_MAX / n) {
+ if (size > Py_SSIZE_T_MAX / n) {
return PyErr_NoMemory();
}
More information about the Python-checkins
mailing list