]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 11 Jun 2021 08:57:16 +0000 (01:57 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Jun 2021 08:57:16 +0000 (01:57 -0700)
commite6d28a1a6ad22125fc3a6df2d611d79aa8d6f67e
tree77121afd3b740a5b77072c9df6d4a01f9ea9229c
parentd7930fb720b5e9db2076b116dffcd52b6ca71438
bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644)

Py_IS_TYPE() no longer uses Py_TYPE() to avoid a compiler warning:
no longer cast "const PyObject*" to "PyObject*".
(cherry picked from commit 304dfec8d3c0763734ea8b5fa2af1d9e1ce69ffa)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/object.h
Misc/NEWS.d/next/C API/2021-06-10-15-22-31.bpo-44378.jGYakF.rst [new file with mode: 0644]