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

Equality is 0 #4493

Merged
merged 2 commits into from
Mar 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix comparison of float32
forki committed Mar 12, 2018
commit 01dc5c59c3a2f944fdeb8c073e48e46a77cd8ffe
2 changes: 1 addition & 1 deletion src/fsharp/FSharp.Core/prim-types.fs
Original file line number Diff line number Diff line change
@@ -4167,7 +4167,7 @@ namespace Microsoft.FSharp.Core
else (# "ceq" e1 e1 : int #)
when ^T : float32 = if (# "clt" e1 e2 : bool #) then (-1)
elif (# "cgt" e1 e2 : bool #) then (1)
elif (# "ceq" e1 e2 : bool #) then (1)
elif (# "ceq" e1 e2 : bool #) then (0)
elif (# "ceq" e2 e2 : bool #) then (-1)
else (# "ceq" e1 e1 : int #)
when ^T : char = if (# "clt.un" e1 e2 : bool #) then (-1) else (# "cgt.un" e1 e2 : int #)