From: Thomas Wouters Date: Fri, 25 Jan 2008 21:09:34 +0000 (+0000) Subject: Use the right (portable) definition of the max of a Py_ssize_t. X-Git-Tag: v2.6a1~406 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a97744c9d99e2a7cf0edebcf6bba36ce74b56df0;p=thirdparty%2FPython%2Fcpython.git Use the right (portable) definition of the max of a Py_ssize_t. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 86110cb2146c..78e8da4b3de0 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -684,7 +684,7 @@ list_inplace_repeat(PyListObject *self, Py_ssize_t n) return (PyObject *)self; } - if (size > SSIZE_MAX / n) { + if (size > PY_SSIZE_T_MAX / n) { return PyErr_NoMemory(); }