Kaydet (Commit) 5f4e45d6 authored tarafından Guido van Rossum's avatar Guido van Rossum

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).
üst 0bba722f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment