Skip to content

Handle NaN comparisons in the interpreter#14441

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:bug/interpreter-nan-cmp
Apr 8, 2024
Merged

Handle NaN comparisons in the interpreter#14441
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:bug/interpreter-nan-cmp

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.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:numeric topic:compiler:interpreter labels Apr 6, 2024
@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
@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

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter topic:stdlib:numeric

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Float64::NAN > 0 in the interpreter

2 participants