Mercurial > cpython-lru_cache-weakref
diff Objects/tupleobject.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 | cab14be0ada1 |
| children | be8ae6b17539 |
line wrap: on
line diff
--- a/Objects/tupleobject.c Sun Oct 17 20:17:41 2010 +0000 +++ b/Objects/tupleobject.c Sun Oct 17 20:54:53 2010 +0000 @@ -312,10 +312,10 @@ 1330111, 1412633, 1165069, 1247599, 1495177, 1577699 */ -static long +static Py_hash_t tuplehash(PyTupleObject *v) { - register long x, y; + register Py_hash_t x, y; register Py_ssize_t len = Py_SIZE(v); register PyObject **p; long mult = 1000003L;
