Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 65603:be8ae6b17539
follow up to #9778: define and use an unsigned hash type
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 Oct 2010 16:20:50 +0000 |
| parents | 0b5bfba7a907 |
| children | d7d323de35e7 |
line wrap: on
line diff
--- a/Python/sysmodule.c Sat Oct 23 01:15:30 2010 +0000 +++ b/Python/sysmodule.c Sat Oct 23 16:20:50 2010 +0000 @@ -569,7 +569,7 @@ 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++,
