From: Guido van Rossum Date: Mon, 24 Nov 2003 04:13:13 +0000 (+0000) Subject: Stop GCC warning about int literal that's so long that it becomes an X-Git-Tag: v2.4a1~1211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f4e45d66f3ed30f0275aba8d76c4fb34403bb9c;p=thirdparty%2FPython%2Fcpython.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). --- diff --git a/Objects/setobject.c b/Objects/setobject.c index 01f05883e232..74b97615aa3f 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);