Skip to content

Conversation

@Rua
Copy link
Contributor

@Rua Rua commented Dec 12, 2025

I noticed that in some cases, a transmute would be added between a K&R style function declaration using () as the parameters, and a full type with (void) as the parameters. Since both of those are translated to the same Rust type, you'd end up with pointless transmute. This PR gates the transmute to only happen if the two Rust types actually differ.

Copy link
Contributor

@fw-immunant fw-immunant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice cleanup!

@kkysen kkysen merged commit d63535c into immunant:master Dec 12, 2025
5 checks passed
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.

3 participants