Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 671b4d9 commit 554f334Copy full SHA for 554f334
1 file changed
Modules/_collectionsmodule.c
@@ -1121,7 +1121,7 @@ dequeiter_next(dequeiterobject *it)
1121
static PyObject *
1122
dequeiter_len(dequeiterobject *it)
1123
{
1124
- return PyLong_FromLong(it->counter);
+ return PyLong_FromSsize_t(it->counter);
1125
}
1126
1127
PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
0 commit comments