-
Joseph Weston authored
The more complicated implementation that we had previously, (which was copied not-quite-verbatim from https://github.com/python/cpython/blob/master/Objects/longobject.c#L3031) is not necessary because hashing for integers is just the integer itself modulo _PyHASH_MODULUS (being careful with the sign).
53710aa5