Use Py_ssize_t to count the

This commit is contained in:
Martin v. Löwis 2006-02-16 14:37:16 +00:00
parent f5adf1eb72
commit d96ee90993
7 changed files with 24 additions and 22 deletions

View file

@ -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 */