diff Modules/_collectionsmodule.c @ 64117:7925bbdfc805

Fix <deque iterator>.__length_hint__() under 64-bit Windows.
author Antoine Pitrou <solipsis@pitrou.net>
date Tue, 17 Aug 2010 18:30:06 +0000
parents cab14be0ada1
children 5b069892e413
line wrap: on
line diff
--- a/Modules/_collectionsmodule.c	Tue Aug 17 17:55:07 2010 +0000
+++ b/Modules/_collectionsmodule.c	Tue Aug 17 18:30:06 2010 +0000
@@ -1121,7 +1121,7 @@
 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)).");