mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-122854: Add Py_HashBuffer() function (#122855)
This commit is contained in:
parent
3d60dfbe17
commit
d8e69b2c1b
17 changed files with 80 additions and 25 deletions
|
@ -1598,7 +1598,7 @@ _Py_COMP_DIAG_PUSH
|
|||
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
|
||||
if (a->ob_shash == -1) {
|
||||
/* Can't fail */
|
||||
a->ob_shash = _Py_HashBytes(a->ob_sval, Py_SIZE(a));
|
||||
a->ob_shash = Py_HashBuffer(a->ob_sval, Py_SIZE(a));
|
||||
}
|
||||
return a->ob_shash;
|
||||
_Py_COMP_DIAG_POP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue