summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:16 (GMT)
commitd96ee909934f3855135589e0e8d6ece1912c1f22 (patch)
tree831f7231c28aecc2be637bc80994e6ccabd009f2 /Python/errors.c
parentf5adf1eb72c755c3f6183199656f18b12a1cb952 (diff)
downloadcpython-d96ee909934f3855135589e0e8d6ece1912c1f22.zip
cpython-d96ee909934f3855135589e0e8d6ece1912c1f22.tar.gz
cpython-d96ee909934f3855135589e0e8d6ece1912c1f22.tar.bz2
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 ce36fc1..ace63ff 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 */