summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-23 16:20:50 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-23 16:20:50 (GMT)
commit8035bc5c048ff08f652649754eb8ea769337afa0 (patch)
tree82778e9f0242d5a26e4ceba5d5b85babde6c12cf /Python
parent2b9af63b4f4757cccad70b76960cfe8c7b9e6a49 (diff)
downloadcpython-8035bc5c048ff08f652649754eb8ea769337afa0.zip
cpython-8035bc5c048ff08f652649754eb8ea769337afa0.tar.gz
cpython-8035bc5c048ff08f652649754eb8ea769337afa0.tar.bz2
follow up to #9778: define and use an unsigned hash type
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 2530cc0..6be2262 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -569,7 +569,7 @@ get_hash_info(void)
PyStructSequence_SET_ITEM(hash_info, field++,
PyLong_FromLong(8*sizeof(Py_hash_t)));
PyStructSequence_SET_ITEM(hash_info, field++,
- PyLong_FromLong(_PyHASH_MODULUS));
+ PyLong_FromSsize_t(_PyHASH_MODULUS));
PyStructSequence_SET_ITEM(hash_info, field++,
PyLong_FromLong(_PyHASH_INF));
PyStructSequence_SET_ITEM(hash_info, field++,