Skip to content
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

Merged
merged 1 commit into from
May 22, 2023

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented May 22, 2023

Stick to inline functions and plain assert to avoid losing constness.
Fixes C++ compiler warnings.
See #101685 (comment)

@markshannon
Copy link
Member Author

@rwgk can you confirm that this fixes the pybind11 compilation issue?

@rwgk
Copy link

rwgk commented May 22, 2023

@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)).

@iritkatriel iritkatriel merged commit e295d86 into python:main May 22, 2023
22 checks passed
@JelleZijlstra JelleZijlstra added the needs backport to 3.12 bug and security fixes label May 22, 2023
@miss-islington
Copy link
Contributor

Thanks @markshannon for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 22, 2023
…pythonGH-104742)

(cherry picked from commit e295d86)

Co-authored-by: Mark Shannon <mark@hotpy.org>
@bedevere-bot
Copy link

GH-104759 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 bug and security fixes label May 22, 2023
@JelleZijlstra
Copy link
Member

(Backporting since this fixes compiler warnings from a recent change, so this counts as a bug fix.)

JelleZijlstra pushed a commit that referenced this pull request May 23, 2023
GH-104742) (#104759)

(cherry picked from commit e295d86)

Co-authored-by: Mark Shannon <mark@hotpy.org>
@markshannon markshannon deleted the fix-long-asserts branch September 26, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants