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

Fix foreach_ptr to work in C++ code #276

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Fix foreach_ptr to work in C++ code #276

merged 1 commit into from
Oct 14, 2024

Conversation

JelteF
Copy link
Collaborator

@JelteF JelteF commented Oct 13, 2024

C++ is more strict in casting void pointers to other pointers than C, so the upstream foreach_ptr implementation doesn't compile on C++ when it's actually used. I'll make an upstream patch for that shortly, but for now let's at least fix the problem in our vendored code (all that's needed is an additional cast).

C++ is more strict in casting void pointers to other pointers than C, so
the upstream foreach_ptr implementation doesn't actually compile on C++.
I'll make an upstream patch for that shortly, but for now let's at least
fix it in our vendored code.
@JelteF JelteF added the developer experience Improves our own lives label Oct 13, 2024
@JelteF JelteF merged commit ad68aa6 into main Oct 14, 2024
4 checks passed
@JelteF JelteF deleted the fix-foreach_ptr branch October 14, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience Improves our own lives
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants