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 Int128-and-float conversion overflow checks on Windows LLVM 14+ #13222

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Mar 24, 2023

Follow-up to #13218. The generic T::MIN <= self <= T::MAX checks introduced in that PR don't work because those mixed comparison primitives always convert both arguments to the used float type first.

@HertzDevil HertzDevil added kind:bug platform:windows topic:stdlib:numeric kind:regression Something that used to correctly work but no longer works labels Mar 24, 2023
@straight-shoota straight-shoota added this to the 1.8.0 milestone Mar 24, 2023
@HertzDevil HertzDevil removed the kind:regression Something that used to correctly work but no longer works label Mar 24, 2023
@straight-shoota straight-shoota merged commit 5aac124 into crystal-lang:master Mar 25, 2023
@HertzDevil HertzDevil deleted the bug/windows-int128-float-overflow branch March 27, 2023 08:22
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants