Skip to content

Avoid casting for unrelated types #140

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

pps83
Copy link
Contributor

@pps83 pps83 commented Mar 31, 2025

No description provided.

@pps83
Copy link
Contributor Author

pps83 commented Mar 31, 2025

These casts are obviously not ok. There is nothing that says in the code that these had to be identical structs (that is, changing one struct should require you to update the other one). Also, without the casts codegen is identical (that is, the den on the stack is "virtual")

@kimwalisch kimwalisch merged commit bbb68f1 into ridiculousfish:master Apr 1, 2025
16 checks passed
@kimwalisch
Copy link
Collaborator

Thanks!

@pps83 pps83 deleted the reinterpret-fix branch April 1, 2025 13:55
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.

2 participants