diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-17 17:55:07 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-17 17:55:07 (GMT) |
commit | 671b4d948e95673604419305bb4bbdf9cd20ab3d (patch) | |
tree | 21d9f55e492f23ab9311916f3ae8a64982937816 /Include/setobject.h | |
parent | 7ac98ae3b3475d1379411f103486a8a69b6bbaf1 (diff) | |
download | cpython-671b4d948e95673604419305bb4bbdf9cd20ab3d.zip cpython-671b4d948e95673604419305bb4bbdf9cd20ab3d.tar.gz cpython-671b4d948e95673604419305bb4bbdf9cd20ab3d.tar.bz2 |
Issue #9612: The set object is now 64-bit clean under Windows.
Diffstat (limited to 'Include/setobject.h')
-rw-r--r-- | Include/setobject.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ 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; |