diff options
author | Victor Stinner <vstinner@python.org> | 2024-08-30 15:42:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 15:42:27 (GMT) |
commit | d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860 (patch) | |
tree | eb78955c066631fdd52b00ddfd26d4fb676f9e36 /Modules/_sre | |
parent | 3d60dfbe1755e00ab20d0ee81281886be77ad5da (diff) | |
download | cpython-d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860.zip cpython-d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860.tar.gz cpython-d8e69b2c1b3388c31a6083cfdd9dc9afff5b9860.tar.bz2 |
gh-122854: Add Py_HashBuffer() function (#122855)
Diffstat (limited to 'Modules/_sre')
-rw-r--r-- | Modules/_sre/sre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c index 32f91af..2c86f88 100644 --- a/Modules/_sre/sre.c +++ b/Modules/_sre/sre.c @@ -2944,7 +2944,7 @@ pattern_hash(PatternObject *self) return -1; } - hash2 = _Py_HashBytes(self->code, sizeof(self->code[0]) * self->codesize); + hash2 = Py_HashBuffer(self->code, sizeof(self->code[0]) * self->codesize); hash ^= hash2; hash ^= self->flags; |