commit | a97744c9d99e2a7cf0edebcf6bba36ce74b56df0 | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Fri Jan 25 21:09:34 2008 +0000 |
committer | Thomas Wouters <thomas@python.org> | Fri Jan 25 21:09:34 2008 +0000 |
tree | dcacf3556e2a629c66863f08b437b5d49d12a922 | |
parent | 8d5cf4ed5754b505d46f0d9742c9d1d04717c68d [diff] [blame] |
Use the right (portable) definition of the max of a Py_ssize_t.
diff --git a/Objects/listobject.c b/Objects/listobject.c index 86110cb..78e8da4 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c
@@ -684,7 +684,7 @@ return (PyObject *)self; } - if (size > SSIZE_MAX / n) { + if (size > PY_SSIZE_T_MAX / n) { return PyErr_NoMemory(); }