summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2008-01-25 21:09:34 (GMT)
committerThomas Wouters <thomas@python.org>2008-01-25 21:09:34 (GMT)
commita97744c9d99e2a7cf0edebcf6bba36ce74b56df0 (patch)
treedcacf3556e2a629c66863f08b437b5d49d12a922 /Objects
parent8d5cf4ed5754b505d46f0d9742c9d1d04717c68d (diff)
downloadcpython-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.c2
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();
}