]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Fix PyUnicode_READ() cast (#92872)
authorVictor Stinner <vstinner@python.org>
Tue, 17 May 2022 17:20:37 +0000 (19:20 +0200)
committerGitHub <noreply@github.com>
Tue, 17 May 2022 17:20:37 +0000 (19:20 +0200)
commite6fd7992a92879103215b3e9f218fe07212af9b1
tree1387bb0ba893f41e9b579058d6c04ce10e180931
parent524f03c08ca6688785c0fe99d8f2b385bf92e58f
gh-89653: PEP 670: Fix PyUnicode_READ() cast (#92872)

_Py_CAST() cannot be used with a constant type: use _Py_STATIC_CAST()
instead.
Include/cpython/unicodeobject.h
Lib/test/_testcppext.cpp