summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-02-16 23:46:01 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-02-16 23:46:01 (GMT)
commite564e7f939b88a88057261733ed3c3a17c01b3b7 (patch)
tree2babf04edaaf73ce701732f2c92b6bf7aba81bdf /Demo
parentdde176593df80c7398a3992da8abffd03dd3f908 (diff)
downloadcpython-e564e7f939b88a88057261733ed3c3a17c01b3b7.zip
cpython-e564e7f939b88a88057261733ed3c3a17c01b3b7.tar.gz
cpython-e564e7f939b88a88057261733ed3c3a17c01b3b7.tar.bz2
new_mmap_object(), Windows flavor.
On a box where sizeof(size_t) == 4, C doesn't define what happens when a size_t value is shifted right by 32 bits, and this caused test_mmap to fail on Windows in a debug build. So use different code to break the size apart depending on how large size_t actually is. This looks like an illusion, since lots of code in this module still appears to assume sizes can't be more than 32 bits (e.g., the internal _GetMapSize() still returns an int), but at least test_mmap passes again.
Diffstat (limited to 'Demo')
0 files changed, 0 insertions, 0 deletions