diff options
author | Thomas Wouters <thomas@python.org> | 2008-01-25 21:09:34 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2008-01-25 21:09:34 (GMT) |
commit | a97744c9d99e2a7cf0edebcf6bba36ce74b56df0 (patch) | |
tree | dcacf3556e2a629c66863f08b437b5d49d12a922 /Objects | |
parent | 8d5cf4ed5754b505d46f0d9742c9d1d04717c68d (diff) | |
download | cpython-a97744c9d99e2a7cf0edebcf6bba36ce74b56df0.zip cpython-a97744c9d99e2a7cf0edebcf6bba36ce74b56df0.tar.gz cpython-a97744c9d99e2a7cf0edebcf6bba36ce74b56df0.tar.bz2 |
Use the right (portable) definition of the max of a Py_ssize_t.
Diffstat (limited to 'Objects')
-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 86110cb..78e8da4 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(); } |