summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-11-24 04:13:13 (GMT)
committerGuido van Rossum <guido@python.org>2003-11-24 04:13:13 (GMT)
commit5f4e45d66f3ed30f0275aba8d76c4fb34403bb9c (patch)
tree901d4f347e1ab8999248d27f3c7efa0221a060e8
parent0bba722fff2bac1bf6a03b994a0a9d516a413ab5 (diff)
downloadcpython-5f4e45d66f3ed30f0275aba8d76c4fb34403bb9c.zip
cpython-5f4e45d66f3ed30f0275aba8d76c4fb34403bb9c.tar.gz
cpython-5f4e45d66f3ed30f0275aba8d76c4fb34403bb9c.tar.bz2
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).
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
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);