diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-17 18:30:06 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-17 18:30:06 (GMT) |
commit | 554f33407cd236ed523fff0adf5ae1463dfda067 (patch) | |
tree | 14488fe0b10bbd6965327b9fa037da003dc2d6be /Modules | |
parent | 671b4d948e95673604419305bb4bbdf9cd20ab3d (diff) | |
download | cpython-554f33407cd236ed523fff0adf5ae1463dfda067.zip cpython-554f33407cd236ed523fff0adf5ae1463dfda067.tar.gz cpython-554f33407cd236ed523fff0adf5ae1463dfda067.tar.bz2 |
Fix <deque iterator>.__length_hint__() under 64-bit Windows.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_collectionsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 1459d97..1146af5 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -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))."); |