summaryrefslogtreecommitdiff
path: root/Include/setobject.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-08-17 17:55:07 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-08-17 17:55:07 +0000
commit671b4d948e95673604419305bb4bbdf9cd20ab3d (patch)
tree21d9f55e492f23ab9311916f3ae8a64982937816 /Include/setobject.h
parent7ac98ae3b3475d1379411f103486a8a69b6bbaf1 (diff)
downloadcpython-git-671b4d948e95673604419305bb4bbdf9cd20ab3d.tar.gz
Issue #9612: The set object is now 64-bit clean under Windows.
Diffstat (limited to 'Include/setobject.h')
-rw-r--r--Include/setobject.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Include/setobject.h b/Include/setobject.h
index 4a9baff5dd..574caf7380 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -22,7 +22,11 @@ no meaning otherwise.
#define PySet_MINSIZE 8
typedef struct {
- long hash; /* cached hash code for the entry key */
+ /* Cached hash code of the key. Note that hash codes are C longs.
+ * We have to use Py_ssize_t instead because set_pop() abuses
+ * the hash field to hold a search finger.
+ */
+ Py_ssize_t hash;
PyObject *key;
} setentry;