diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 07:52:27 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 07:52:27 (GMT) |
commit | b1ed7fac12fe51080c06e518a9fcaa21f0734744 (patch) | |
tree | 62ec01511606af98540d5b78bb24b2b848f4064e /Objects | |
parent | 2a19074a9c58d491712139cd3607c10fddebbebc (diff) | |
download | cpython-b1ed7fac12fe51080c06e518a9fcaa21f0734744.zip cpython-b1ed7fac12fe51080c06e518a9fcaa21f0734744.tar.gz cpython-b1ed7fac12fe51080c06e518a9fcaa21f0734744.tar.bz2 |
Replace INT_MAX with PY_SSIZE_T_MAX.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/listobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index a66371f..1debd23 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -181,7 +181,7 @@ ins1(PyListObject *self, Py_ssize_t where, PyObject *v) PyErr_BadInternalCall(); return -1; } - if (n == INT_MAX) { + if (n == PY_SSIZE_T_MAX) { PyErr_SetString(PyExc_OverflowError, "cannot add more objects to list"); return -1; @@ -221,7 +221,7 @@ app1(PyListObject *self, PyObject *v) Py_ssize_t n = PyList_GET_SIZE(self); assert (v != NULL); - if (n == INT_MAX) { + if (n == PY_SSIZE_T_MAX) { PyErr_SetString(PyExc_OverflowError, "cannot add more objects to list"); return -1; |