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 compile error with -Werror=strict-aliasing #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ceeac
Copy link

@ceeac ceeac commented Sep 19, 2022

Accessing a float by dereferencing an int pointer is UB.

@band-a-prend
Copy link

There is another similar issue [1] with sqvm.cpp reported from Gentoo downstream. Could you please look at it too?

[1] https://sourceforge.net/p/codeblocks/tickets/1303/

@band-a-prend
Copy link

Sorry, I forgot that codeblocks uses bundled version of squirrel (v3.1) and I have to check at least build of suirrel 3.2 to confirm additional issue.

@band-a-prend
Copy link

This proposed patch fixes codeblocks issue related to sqcompiler.cpp file.

@albertodemichelis
Copy link
Owner

In which situation does this create an issue?

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