diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2021-04-22 15:34:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 15:34:57 (GMT) |
commit | a07da09ad5bd7d234ccd084a3a0933c290d1b592 (patch) | |
tree | 8c1ab67575527bd5c0c9452a74458ad5a29a1d08 /Include | |
parent | accea7dc2bd30a6e8e1b0334acfca9585cbd7f8a (diff) | |
download | cpython-a07da09ad5bd7d234ccd084a3a0933c290d1b592.zip cpython-a07da09ad5bd7d234ccd084a3a0933c290d1b592.tar.gz cpython-a07da09ad5bd7d234ccd084a3a0933c290d1b592.tar.bz2 |
bpo-43475: Fix worst case collision behavior for NaN instances (GH-25493)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyhash.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/pyhash.h b/Include/pyhash.h index 4437b87..728ef93 100644 --- a/Include/pyhash.h +++ b/Include/pyhash.h @@ -7,7 +7,7 @@ extern "C" { /* Helpers for hash functions */ #ifndef Py_LIMITED_API -PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double); +PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double); PyAPI_FUNC(Py_hash_t) _Py_HashPointer(const void*); // Similar to _Py_HashPointer(), but don't replace -1 with -2 PyAPI_FUNC(Py_hash_t) _Py_HashPointerRaw(const void*); @@ -29,7 +29,6 @@ PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t); #define _PyHASH_MODULUS (((size_t)1 << _PyHASH_BITS) - 1) #define _PyHASH_INF 314159 -#define _PyHASH_NAN 0 #define _PyHASH_IMAG _PyHASH_MULTIPLIER |