Skip to content

Commit cebbe18

Browse files
author
gvanrossum
committed
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). git-svn-id: http://svn.python.org/projects/python/trunk@34730 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 6adae53 commit cebbe18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/setobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ frozenset_hash(PyObject *self)
727727
use cases have many combinations of a small number of
728728
elements with nearby hashes so that many distinct combinations
729729
collapse to only a handful of distinct hash values. */
730-
hash ^= PyObject_Hash(item) * 3644798167;
730+
hash ^= PyObject_Hash(item) * 3644798167u;
731731
Py_DECREF(item);
732732
}
733733
Py_DECREF(it);

0 commit comments

Comments
 (0)