summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:16 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:16 +0000
commitea615bf5d1d108608a0e287b49cf062887e09a03 (patch)
tree63690c5876f149addb2f90474f80a8ed02c41730 /Python/errors.c
parente035b907ea2beef5cebb34c8cdee3af0229ead7b (diff)
downloadcpython-ea615bf5d1d108608a0e287b49cf062887e09a03.tar.gz
Use Py_ssize_t to count the
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index ce36fc1dee..ace63ffd81 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -83,7 +83,7 @@ PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc)
return 0;
}
if (PyTuple_Check(exc)) {
- int i, n;
+ Py_ssize_t i, n;
n = PyTuple_Size(exc);
for (i = 0; i < n; i++) {
/* Test recursively */