diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-07 02:47:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 02:47:57 (GMT) |
commit | fd5989bda119f8c0f8571aad88d8e9be3be678a4 (patch) | |
tree | 467515e7175f028be8f1eddfe84a762e71d5a4ca /Python/specialize.c | |
parent | f42edf1e7be5018a8988a219a168e231cbaa25e5 (diff) | |
download | cpython-fd5989bda119f8c0f8571aad88d8e9be3be678a4.zip cpython-fd5989bda119f8c0f8571aad88d8e9be3be678a4.tar.gz cpython-fd5989bda119f8c0f8571aad88d8e9be3be678a4.tar.bz2 |
gh-108753: _Py_PrintSpecializationStats() uses Py_hexdigits (#109040)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index e072167..8b4aac2 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -290,8 +290,8 @@ _Py_PrintSpecializationStats(int to_file) char hex_name[41]; _PyOS_URandomNonblock(rand, 20); for (int i = 0; i < 20; i++) { - hex_name[2*i] = "0123456789abcdef"[rand[i]&15]; - hex_name[2*i+1] = "0123456789abcdef"[(rand[i]>>4)&15]; + hex_name[2*i] = Py_hexdigits[rand[i]&15]; + hex_name[2*i+1] = Py_hexdigits[(rand[i]>>4)&15]; } hex_name[40] = '\0'; char buf[64]; |