We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385961d commit 3709c2dCopy full SHA for 3709c2d
libc/fuzzing/math/Compare.h
@@ -20,7 +20,7 @@ ValuesEqual(T x1, T x2) {
20
LIBC_NAMESPACE::fputil::FPBits<T> bits2(x2);
21
// If either is NaN, we want both to be NaN.
22
if (bits1.is_nan() || bits2.is_nan())
23
- return bits2.is_nan() && bits2.is_nan();
+ return bits1.is_nan() && bits2.is_nan();
24
25
// For all other values, we want the values to be bitwise equal.
26
return bits1.uintval() == bits2.uintval();
0 commit comments