From 5f4e45d66f3ed30f0275aba8d76c4fb34403bb9c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 24 Nov 2003 04:13:13 +0000 Subject: 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). --- Objects/setobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/setobject.c b/Objects/setobject.c index 01f0588..74b9761 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -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); -- cgit v0.12