mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix <deque iterator>.__length_hint__() under 64-bit Windows.
This commit is contained in:
@@ -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)).");
|
||||
|
||||
Reference in New Issue
Block a user