]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Fix PyUnicode_READ() cast (GH-92872)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 May 2022 17:45:55 +0000 (10:45 -0700)
committerGitHub <noreply@github.com>
Tue, 17 May 2022 17:45:55 +0000 (10:45 -0700)
commit1df455042d610afac71e792ae2689060dd43178e
treed6913521bbe657c1e0a341a1801399c38b83e441
parent38d95b5500fa2d84d718c4190ba2f1b2f6806e6c
gh-89653: PEP 670: Fix PyUnicode_READ() cast (GH-92872)

_Py_CAST() cannot be used with a constant type: use _Py_STATIC_CAST()
instead.
(cherry picked from commit e6fd7992a92879103215b3e9f218fe07212af9b1)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/cpython/unicodeobject.h
Lib/test/_testcppext.cpp