make hashes always the size of pointers; introduce Py_hash_t #9778

This commit is contained in:
Benjamin Peterson 2010-10-17 20:54:53 +00:00
parent 6fb457526c
commit 8f67d0893f
31 changed files with 137 additions and 131 deletions

View file

@ -312,10 +312,10 @@ Done:
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;