GH-101291: Avoid using macros with casts in low-level long API.#104742
GH-101291: Avoid using macros with casts in low-level long API.#104742iritkatriel merged 1 commit intopython:mainfrom
Conversation
|
@rwgk can you confirm that this fixes the pybind11 compilation issue? |
Yes, confirmed! Thanks for the quick fix! Building all pybind11 unit tests works again. For completeness: I'm currently unable to run the full suite of pybind11 unit tests b/o an unrelated problem (#103912 (comment)). |
|
Thanks @markshannon for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…pythonGH-104742) (cherry picked from commit e295d86) Co-authored-by: Mark Shannon <mark@hotpy.org>
|
GH-104759 is a backport of this pull request to the 3.12 branch. |
|
(Backporting since this fixes compiler warnings from a recent change, so this counts as a bug fix.) |
Stick to inline functions and plain
assertto avoid losingconstness.Fixes C++ compiler warnings.
See #101685 (comment)