Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix soundness bug in NotNan::partial_cmp.
Ill-behaved FloatCore implementations for user types could have where `x.partial_cmp(&x) == None` even when `x.is_nan() == false`. This crate will now panic in those cases, rather than execute undefined behavior. Fixes #150.
- Loading branch information