Skip to content

Fix for floating point crashes and warnings for gcc 12#17

Open
JaimeRoelandts wants to merge 4 commits intoHewlettPackard:masterfrom
JaimeRoelandts:fix-gcc-12
Open

Fix for floating point crashes and warnings for gcc 12#17
JaimeRoelandts wants to merge 4 commits intoHewlettPackard:masterfrom
JaimeRoelandts:fix-gcc-12

Conversation

@JaimeRoelandts
Copy link
Copy Markdown

  • Added explicit type casting to avoid int division, thus losing precision. This fixes floating point arithmetic crashes.
  • Commented out unused variables
  • Added spaces between a quote and the Macro
  • Added brackets for conditions, because of the && to || precedence, the conditions were probably incorrect.

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