aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/optimizer.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-05-21 19:51:51 +0200
committerGitHub <noreply@github.com>2024-05-21 19:51:51 +0200
commitf6da790122fdae1a28f444edfbb55202d6829cd1 (patch)
tree68d3e65a10037dfc6421b70a2f24bbc06d68f285 /Python/optimizer.c
parent87939bd5790accea77c5a81093f16f28d3f0b429 (diff)
downloadcpython-f6da790122fdae1a28f444edfbb55202d6829cd1.tar.gz
cpython-f6da790122fdae1a28f444edfbb55202d6829cd1.zip
gh-111389: Add PyHASH_MULTIPLIER constant (#119214)
Diffstat (limited to 'Python/optimizer.c')
-rw-r--r--Python/optimizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c
index 9ae99ccdaea..5b4a6ff8cb3 100644
--- a/Python/optimizer.c
+++ b/Python/optimizer.c
@@ -1496,7 +1496,7 @@ address_to_hash(void *ptr) {
uintptr_t addr = (uintptr_t)ptr;
for (int i = 0; i < SIZEOF_VOID_P; i++) {
uhash ^= addr & 255;
- uhash *= (uint64_t)_PyHASH_MULTIPLIER;
+ uhash *= (uint64_t)PyHASH_MULTIPLIER;
addr >>= 8;
}
return uhash;