diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-04 07:26:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 07:26:25 (GMT) |
commit | 1177897551066c1e8c394809152614a6483f9ce7 (patch) | |
tree | 62a6fbb373e0bf83932bc192caaaa8cf321bd3de /Python/optimizer.c | |
parent | 6be55f1bedcd076c12d00bf061bbcffc4ed8073a (diff) | |
download | cpython-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 '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 8be2c0f..9dddc43 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; |