commit | d92272e4a9b435faddba859fd37a34ce89f817a9 | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Fri Jan 25 19:51:24 2008 +0000 |
committer | Thomas Wouters <thomas@python.org> | Fri Jan 25 19:51:24 2008 +0000 |
tree | d672652dda6ef5ad2e276fdc8d499505abf457a6 | |
parent | ee6bab06d323b76a36833cbe65c857d279195e9a [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 10b099a..7c63acf 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c
@@ -672,7 +672,7 @@ return (PyObject *)self; } - if (size > SSIZE_MAX / n) { + if (size > Py_SSIZE_T_MAX / n) { return PyErr_NoMemory(); }