From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 18 Jan 2018 22:27:22 +0000 (-0800) Subject: Removed unnecesssary bit inversion which doesn't improve dispersion statistics (GH... X-Git-Tag: v3.6.5rc1~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=051650ab8de620dd7e3c557f8227c43439ea8c6a;p=python Removed unnecesssary bit inversion which doesn't improve dispersion statistics (GH-5235) (#5236) (cherry picked from commit fa7880604191f81cbdddc191216f7b1e39a74d8d) --- diff --git a/Objects/setobject.c b/Objects/setobject.c index 093a15f367..c742041b16 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 */