mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
[3.13] gh-111389: Add PyHASH_MULTIPLIER constant (GH-119214) (#119334)
gh-111389: Add PyHASH_MULTIPLIER constant (GH-119214)
(cherry picked from commit f6da790122
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
6be55f1bed
commit
1177897551
7 changed files with 16 additions and 7 deletions
|
@ -312,7 +312,7 @@ traceback_hash(traceback_t *traceback)
|
|||
/* code based on tuplehash() of Objects/tupleobject.c */
|
||||
Py_uhash_t x, y; /* Unsigned for defined overflow behavior. */
|
||||
int len = traceback->nframe;
|
||||
Py_uhash_t mult = _PyHASH_MULTIPLIER;
|
||||
Py_uhash_t mult = PyHASH_MULTIPLIER;
|
||||
frame_t *frame;
|
||||
|
||||
x = 0x345678UL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue