summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-17 20:54:53 +0000
committerBenjamin Peterson <benjamin@python.org>2010-10-17 20:54:53 +0000
commit8c3324e313c1adb92a1e38bbcbaa494bf97b754d (patch)
tree25e2c647d7ba30fae6dd1d0446b9eaa6997c17e8 /Python/sysmodule.c
parent7ce1b2b4dc3414cd9e8bca771ee92a52e67db390 (diff)
downloadcpython-8c3324e313c1adb92a1e38bbcbaa494bf97b754d.tar.gz
make hashes always the size of pointers; introduce Py_hash_t #9778
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 6c563f0d37..033c9d5e56 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -567,7 +567,7 @@ get_hash_info(void)
if (hash_info == NULL)
return NULL;
PyStructSequence_SET_ITEM(hash_info, field++,
- PyLong_FromLong(8*sizeof(long)));
+ PyLong_FromLong(8*sizeof(Py_hash_t)));
PyStructSequence_SET_ITEM(hash_info, field++,
PyLong_FromLong(_PyHASH_MODULUS));
PyStructSequence_SET_ITEM(hash_info, field++,