Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 65494:e8969fb822fc
make hashes always the size of pointers; introduce Py_hash_t #9778
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 17 Oct 2010 20:54:53 +0000 |
| parents | 932f97bfbdc0 |
| children | 0b5bfba7a907 |
line wrap: on
line diff
--- a/Python/sysmodule.c Sun Oct 17 20:17:41 2010 +0000 +++ b/Python/sysmodule.c Sun Oct 17 20:54:53 2010 +0000 @@ -567,7 +567,7 @@ 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++,
