afonso360 opened PR #4849 from fcmp-tests
to main
:
:wave: Hey,
This fixes #4828 by implementing PartialEq in terms of float values for the
Ieee{32,64}
types.Previously
PartialEq
was auto derived. This means that it was implemented in terms of PartialEq in a u32.This is not correct for floats because
NaN != NaN
.PartialOrd was manually implemented in 6d50099816f397c1ff3256d30f742cf041d54e32, but it seems like it was an oversight to leave PartialEq out until now.
The test suite depends on the previous behaviour so we adjust it to keep comparing bits instead of floats.
cc: @jameysharp
afonso360 updated PR #4849 from fcmp-tests
to main
.
afonso360 edited PR #4849 from fcmp-tests
to main
:
:wave: Hey,
This fixes #4828 by implementing
PartialEq
in terms of float values for theIeee{32,64}
types.Previously
PartialEq
was auto derived. This means that it was implemented in terms ofPartialEq
in au32
.This is not correct for floats because
NaN != NaN
.
PartialOrd
was manually implemented in 6d50099816f397c1ff3256d30f742cf041d54e32, but it seems like it was an oversight to leavePartialEq
out until now.The test suite depends on the previous behaviour so we adjust it to keep comparing bits instead of floats.
cc: @jameysharp
afonso360 updated PR #4849 from fcmp-tests
to main
.
jameysharp submitted PR review.
jameysharp merged PR #4849.
Last updated: Nov 22 2024 at 17:03 UTC