Use Py_ssize_t for counts and sizes.

Convert Py_ssize_t using PyInt_FromSsize_t
This commit is contained in:
Martin v. Löwis 2006-02-16 14:32:27 +00:00
parent ad0a4629be
commit eb079f1c25
10 changed files with 33 additions and 31 deletions

View file

@ -82,7 +82,7 @@ iter_len(seqiterobject *it)
return NULL;
len = seqsize - it->it_index;
if (len >= 0)
return PyInt_FromLong(len);
return PyInt_FromSsize_t(len);
}
return PyInt_FromLong(0);
}