Mercurial > cpython-lru_cache-weakref
diff Python/ceval.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 | bf5cfe9a0bb5 |
| children | 724920a015f7 |
line wrap: on
line diff
--- a/Python/ceval.c Sun Oct 17 20:17:41 2010 +0000 +++ b/Python/ceval.c Sun Oct 17 20:54:53 2010 +0000 @@ -2102,7 +2102,7 @@ /* Inline the PyDict_GetItem() calls. WARNING: this is an extreme speed hack. Do not try this at home. */ - long hash = ((PyUnicodeObject *)w)->hash; + Py_hash_t hash = ((PyUnicodeObject *)w)->hash; if (hash != -1) { PyDictObject *d; PyDictEntry *e;
