diff --git a/Objects/setobject.c b/Objects/setobject.c index 093a15f367f..c742041b16d 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -790,7 +790,7 @@ frozenset_hash(PyObject *self) hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL; /* Disperse patterns arising in nested frozensets */ - hash ^= (hash >> 11) ^ (~hash >> 25); + hash ^= (hash >> 11) ^ (hash >> 25); hash = hash * 69069U + 907133923UL; /* -1 is reserved as an error code */