Issue #9612: The set object is now 64-bit clean under Windows.
diff --git a/Include/setobject.h b/Include/setobject.h
index 4a9baff..574caf7 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -22,7 +22,11 @@
#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;