Skip to content

Commit cea8b18

Browse files
committed
Don't compare to NaN in a constant context
1 parent 56c204f commit cea8b18

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

num/f32_unittest.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ TEST(f32, Traits) {
5757
static_assert(2_f32 > 1_f32);
5858
static_assert(1_f32 <= 1_f32);
5959
static_assert(1_f32 < 2_f32);
60-
static_assert(1_f32 <= f32::TODO_NAN());
6160
static_assert(sus::num::Eq<f32, f32>);
6261
static_assert(1_f32 == 1_f32);
6362
static_assert(!(1_f32 == 2_f32));

num/f64_unittest.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ TEST(f64, Traits) {
5353
static_assert(2_f64 > 1_f64);
5454
static_assert(1_f64 <= 1_f64);
5555
static_assert(1_f64 < 2_f64);
56-
static_assert(1_f64 <= f64::TODO_NAN());
5756
static_assert(sus::num::Eq<f64, f64>);
5857
static_assert(1_f64 == 1_f64);
5958
static_assert(!(1_f64 == 2_f64));

0 commit comments

Comments
 (0)