diff options
Diffstat (limited to 'Objects/iterobject.c')
-rw-r--r-- | Objects/iterobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c index 6f7c57e..51f551b 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -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); } |