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 casts in C implementation for GCC 14 #44

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jun 13, 2024

Fix casts performed in the C extension module to make it build with GCC 14. This involves adding two missing casts from Blake3Object * to PyObject * for return values, and fixing casts in method definitions to use PyCFunction (i.e. the type expected by the struct) rather than PyCFunctionWithKeywords (i.e. the type that's actually used by the function, and that wouldn't require a cast in the first place).

Fixes #43

Fix casts performed in the C extension module to make it build with
GCC 14.  This involves adding two missing casts from `Blake3Object *`
to `PyObject *` for return values, and fixing casts in method
definitions to use `PyCFunction` (i.e. the type expected by the struct)
rather than `PyCFunctionWithKeywords` (i.e. the type that's actually
used by the function, and that wouldn't require a cast in the first
place).

Fixes oconnor663#43
@oconnor663
Copy link
Owner

Thanks! CI breaks are unrelated, fixed in 524b499.

@oconnor663 oconnor663 merged commit 563ab99 into oconnor663:master Jun 13, 2024
87 of 108 checks passed
@mgorny mgorny deleted the gcc14 branch June 14, 2024 01:55
@mgorny
Copy link
Contributor Author

mgorny commented Jun 14, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C implementation fails to compile with GCC 14
2 participants