mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix <deque iterator>.__length_hint__() under 64-bit Windows.
This commit is contained in:
parent
671b4d948e
commit
554f33407c
1 changed files with 1 additions and 1 deletions
|
@ -1121,7 +1121,7 @@ dequeiter_next(dequeiterobject *it)
|
|||
static PyObject *
|
||||
dequeiter_len(dequeiterobject *it)
|
||||
{
|
||||
return PyLong_FromLong(it->counter);
|
||||
return PyLong_FromSsize_t(it->counter);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue