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

Handle NaN comparisons in the interpreter #14441

Merged

Conversation

HertzDevil
Copy link
Contributor

Fixes #13909.

Note that #<=> is never a primitive, so the interpreter bytecode doesn't really have to define instructions doing that.

@straight-shoota straight-shoota added this to the 1.12.0 milestone Apr 6, 2024
@straight-shoota straight-shoota merged commit 8f1d45a into crystal-lang:master Apr 8, 2024
58 checks passed
@HertzDevil HertzDevil deleted the bug/interpreter-nan-cmp branch April 8, 2024 13:16
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.

Float64::NAN > 0 in the interpreter
2 participants