diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-02 15:07:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 15:07:00 (GMT) |
commit | 031397063e9c22711abfbf90f2617c8785cfc42c (patch) | |
tree | 08f64eeab6cbe6cebb51f44ddeb0f329c16ca9d3 /Python/initconfig.c | |
parent | b11243e85e020ed2f524bdd83c339faf11ef03d4 (diff) | |
download | cpython-031397063e9c22711abfbf90f2617c8785cfc42c.zip cpython-031397063e9c22711abfbf90f2617c8785cfc42c.tar.gz cpython-031397063e9c22711abfbf90f2617c8785cfc42c.tar.bz2 |
gh-92135: Fix _Py_reinterpret_cast() for const (#92138)
Fix C++ compiler warnings on cast macros, like _PyObject_CAST(), when
casting a constant expression to a non constant type: use
const_cast<> in C++.
* In C++, Py_SAFE_DOWNCAST() now uses static_cast<> rather than
reinterpret_cast<>.
* Add tests to the _testcppext C++ extension.
* test_cppext no longer captures stdout in verbose mode.
Diffstat (limited to 'Python/initconfig.c')
0 files changed, 0 insertions, 0 deletions