-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-101291: Avoid using macros with casts in low-level long API. #104742
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
assert
to avoid losingconst
ness.Fixes C++ compiler warnings.
See #101685 (comment)