mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
make hashes always the size of pointers; introduce Py_hash_t #9778
This commit is contained in:
parent
6fb457526c
commit
8f67d0893f
31 changed files with 137 additions and 131 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue