summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-04 07:26:25 (GMT)
committerGitHub <noreply@github.com>2024-06-04 07:26:25 (GMT)
commit1177897551066c1e8c394809152614a6483f9ce7 (patch)
tree62a6fbb373e0bf83932bc192caaaa8cf321bd3de /Objects
parent6be55f1bedcd076c12d00bf061bbcffc4ed8073a (diff)
downloadcpython-1177897551066c1e8c394809152614a6483f9ce7.zip
cpython-1177897551066c1e8c394809152614a6483f9ce7.tar.gz
cpython-1177897551066c1e8c394809152614a6483f9ce7.tar.bz2
[3.13] gh-111389: Add PyHASH_MULTIPLIER constant (GH-119214) (#119334)
gh-111389: Add PyHASH_MULTIPLIER constant (GH-119214) (cherry picked from commit f6da790122fdae1a28f444edfbb55202d6829cd1) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Objects')
-rw-r--r--Objects/codeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 23fc8a7..55b512b 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -2020,7 +2020,7 @@ code_hash(PyCodeObject *co)
Py_uhash_t uhash = 20221211;
#define SCRAMBLE_IN(H) do { \
uhash ^= (Py_uhash_t)(H); \
- uhash *= _PyHASH_MULTIPLIER; \
+ uhash *= PyHASH_MULTIPLIER; \
} while (0)
#define SCRAMBLE_IN_HASH(EXPR) do { \
Py_hash_t h = PyObject_Hash(EXPR); \