Skip to content

Conversation

alsepkow
Copy link
Contributor

This PR fixes the floating point 'POSITIVE' sets to have values to avoid having a value which produces an out-of-range 16-bit int/uint values when testing ftou and ftoi. Specifically, 3424241.0, is UB as it is larger than uint16_t max.

Copy link
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Wondering if there's an assert that could have been added somewhere to catch cases like this for us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants