diff options
author | Victor Stinner <vstinner@python.org> | 2024-05-21 19:51:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 19:51:51 +0200 |
commit | f6da790122fdae1a28f444edfbb55202d6829cd1 (patch) | |
tree | 68d3e65a10037dfc6421b70a2f24bbc06d68f285 /Python/optimizer.c | |
parent | 87939bd5790accea77c5a81093f16f28d3f0b429 (diff) | |
download | cpython-f6da790122fdae1a28f444edfbb55202d6829cd1.tar.gz cpython-f6da790122fdae1a28f444edfbb55202d6829cd1.zip |
gh-111389: Add PyHASH_MULTIPLIER constant (#119214)
Diffstat (limited to 'Python/optimizer.c')
-rw-r--r-- | Python/optimizer.c | 2 |
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; |