File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ impl Float for f32 {
263
263
// Since we do not support sNaN in Rust yet, we do not need to handle them.
264
264
// FIXME(nagisa): due to https://bugs.llvm.org/show_bug.cgi?id=33303 we canonicalize by
265
265
// multiplying by 1.0. Should switch to the `canonicalize` when it works.
266
- ( if self < other || self . is_nan ( ) { other } else { self } ) * 1.0
266
+ ( if self . is_nan ( ) || self < other { other } else { self } ) * 1.0
267
267
}
268
268
269
269
/// Returns the minimum of the two numbers.
@@ -277,6 +277,6 @@ impl Float for f32 {
277
277
// Since we do not support sNaN in Rust yet, we do not need to handle them.
278
278
// FIXME(nagisa): due to https://bugs.llvm.org/show_bug.cgi?id=33303 we canonicalize by
279
279
// multiplying by 1.0. Should switch to the `canonicalize` when it works.
280
- ( if self < other || other. is_nan ( ) { self } else { other } ) * 1.0
280
+ ( if other. is_nan ( ) || self < other { self } else { other } ) * 1.0
281
281
}
282
282
}
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ impl Float for f64 {
261
261
// Since we do not support sNaN in Rust yet, we do not need to handle them.
262
262
// FIXME(nagisa): due to https://bugs.llvm.org/show_bug.cgi?id=33303 we canonicalize by
263
263
// multiplying by 1.0. Should switch to the `canonicalize` when it works.
264
- ( if self < other || self . is_nan ( ) { other } else { self } ) * 1.0
264
+ ( if self . is_nan ( ) || self < other { other } else { self } ) * 1.0
265
265
}
266
266
267
267
/// Returns the minimum of the two numbers.
@@ -275,6 +275,6 @@ impl Float for f64 {
275
275
// Since we do not support sNaN in Rust yet, we do not need to handle them.
276
276
// FIXME(nagisa): due to https://bugs.llvm.org/show_bug.cgi?id=33303 we canonicalize by
277
277
// multiplying by 1.0. Should switch to the `canonicalize` when it works.
278
- ( if self < other || other. is_nan ( ) { self } else { other } ) * 1.0
278
+ ( if other. is_nan ( ) || self < other { self } else { other } ) * 1.0
279
279
}
280
280
}
You can’t perform that action at this time.
0 commit comments