mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Use Py_ssize_t for counts and sizes.
Convert Py_ssize_t using PyInt_FromSsize_t
This commit is contained in:
parent
ad0a4629be
commit
eb079f1c25
10 changed files with 33 additions and 31 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue