mirror of https://github.com/python/cpython.git
Stop GCC warning about int literal that's so long that it becomes an
unsigned int (on a 32-bit machine), by adding an explicit 'u' to the literal (a prime used to improve the hash function for frozenset).
This commit is contained in:
parent
0bba722fff
commit
5f4e45d66f
|
@ -727,7 +727,7 @@ frozenset_hash(PyObject *self)
|
|||
use cases have many combinations of a small number of
|
||||
elements with nearby hashes so that many distinct combinations
|
||||
collapse to only a handful of distinct hash values. */
|
||||
hash ^= PyObject_Hash(item) * 3644798167;
|
||||
hash ^= PyObject_Hash(item) * 3644798167u;
|
||||
Py_DECREF(item);
|
||||
}
|
||||
Py_DECREF(it);
|
||||
|
|
Loading…
Reference in New Issue