diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-17 20:54:53 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-17 20:54:53 +0000 |
commit | 8c3324e313c1adb92a1e38bbcbaa494bf97b754d (patch) | |
tree | 25e2c647d7ba30fae6dd1d0446b9eaa6997c17e8 /Python/sysmodule.c | |
parent | 7ce1b2b4dc3414cd9e8bca771ee92a52e67db390 (diff) | |
download | cpython-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.c | 2 |
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++, |