mirror of
https://github.com/python/cpython.git
synced 2026-05-19 19:03:25 -04:00
10fe877dcd
platforms. The previous code was fragile, depending on the twin
accidents that:
(1) in C, casting the double value 2.**63 to long returns the integer
value -2**63, and
(2) in Python, hash(-2**63) == hash(2**63).
There's already a test for this in test_hash.