rust ffast-math (defunct, use lower)
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f077f2e..fee4937 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -176,9 +176,7 @@ impl<T: FastFloat> PartialEq<T> for FFloat<T> {
impl<T: FastFloat> Eq for FFloat<T> {}
impl<T: FastFloat> PartialOrd for FFloat<T> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
- self.check();
- other.check();
- Some(unsafe { self.0.partial_cmp(&other.0).unwrap_unchecked() })
+ Some(self.cmp(other))
}
}
impl<T: FastFloat> PartialOrd<T> for FFloat<T> {