summaryrefslogtreecommitdiff
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-12-10 18:15:46 -0800
committerGregory P. Smith <greg@krypto.org>2012-12-10 18:15:46 -0800
commit2d67fb897d9266c7ea698a620a2c2a7d6ffb1eb0 (patch)
tree14817adc28a979e307f091aecb33b92bdbb8f4c6 /pyconfig.h.in
parent3a61aecd2a93b9cb5618b2a58883dbccfce19113 (diff)
downloadcpython-2d67fb897d9266c7ea698a620a2c2a7d6ffb1eb0.tar.gz
Fix the internals of our hash functions to used unsigned values during hash
computation as the overflow behavior of signed integers is undefined. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change.
Diffstat (limited to 'pyconfig.h.in')
0 files changed, 0 insertions, 0 deletions