summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-02-08 15:09:21 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-02-08 15:09:21 +0000
commitc96db47217030732db07f64414cc893a682cd92c (patch)
treee9d551096708fa3254b73cd5aa9ba47dda2381a1 /Python/sysmodule.c
parent876185542d7d21701d8ee56af10ee88f6f8a516d (diff)
downloadcpython-git-c96db47217030732db07f64414cc893a682cd92c.tar.gz
Merged revisions 69436 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69436 | mark.dickinson | 2009-02-08 14:42:28 +0000 (Sun, 08 Feb 2009) | 10 lines Issue #789290: make sure that hash(2**63) == hash(2.**63) on 64-bit 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. ........
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions