diff options
author | Thomas Wouters <thomas@python.org> | 2008-01-25 19:51:24 +0000 |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2008-01-25 19:51:24 +0000 |
commit | d92272e4a9b435faddba859fd37a34ce89f817a9 (patch) | |
tree | d672652dda6ef5ad2e276fdc8d499505abf457a6 | |
parent | ee6bab06d323b76a36833cbe65c857d279195e9a (diff) | |
download | cpython-git-d92272e4a9b435faddba859fd37a34ce89f817a9.tar.gz |
Use the right (portable) definition of the max of a Py_ssize_t.
-rw-r--r-- | Objects/listobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 10b099aecb..7c63acf1c8 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -672,7 +672,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(); } |