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

remove that ugly UB and fix errors in buildAndRun.sh #1

Open
matu3ba opened this issue Jan 30, 2023 · 0 comments
Open

remove that ugly UB and fix errors in buildAndRun.sh #1

matu3ba opened this issue Jan 30, 2023 · 0 comments

Comments

@matu3ba
Copy link
Owner

matu3ba commented Jan 30, 2023

increases required alignment from 1 to 4

This is UB: pointer casts in C are a heavy footgun and non-portable or clunky (must satisfy sufficient storage, padding, alignment) or require memcpy to temporary.

Printing address should work with the typical &string[0] hack.

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

No branches or pull requests

1 participant