FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-101291: Avoid using macros with casts in low-level long API. by markshannon · Pull Request #104742 · python/cpython · GitHub

/ cpython Public

GH-101291: Avoid using macros with casts in low-level long API. - #104742

Merged
iritkatriel merged 1 commit into
python:mainfrom
faster-cpython:fix-long-asserts
May 22, 2023
Merged

GH-101291: Avoid using macros with casts in low-level long API.#104742
iritkatriel merged 1 commit into
python:mainfrom
faster-cpython:fix-long-asserts

Conversation

markshannon commented May 22, 2023
edited
Loading

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

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

rwgk commented May 22, 2023

Copy link
Copy Markdown

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

Copy link
Copy Markdown
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>

Copy link
Copy Markdown

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

bedevere-bot removed the needs backport to 3.12 only security fixes label May 22, 2023

Copy link
Copy Markdown
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 deleted the fix-long-asserts branch September 26, 2023 12:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL