-
- Downloads
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.
Showing
- Include/methodobject.h 1 addition, 2 deletionsInclude/methodobject.h
- Include/objimpl.h 2 additions, 2 deletionsInclude/objimpl.h
- Include/pyport.h 15 additions, 5 deletionsInclude/pyport.h
- Lib/test/_testcppext.cpp 31 additions, 0 deletionsLib/test/_testcppext.cpp
- Lib/test/test_cppext.py 13 additions, 5 deletionsLib/test/test_cppext.py
Loading
Please register or sign in to comment