Skip to content

Fix compile error with -Werror=strict-aliasing#257

Open
ceeac wants to merge 1 commit intoalbertodemichelis:masterfrom
ceeac:patch-1
Open

Fix compile error with -Werror=strict-aliasing#257
ceeac wants to merge 1 commit intoalbertodemichelis:masterfrom
ceeac:patch-1

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