[libc] Fix wrong name in Compare.h (#117223)
Fix for some mistakes in source code found using PVS Studio. Inspired by: https://pvs-studio.com/en/blog/posts/cpp/1188/ Fixed: - [Bug 5](https://pvs-studio.com/en/blog/posts/cpp/1188/#IDF23EA2CEAB)
This commit is contained in:
@@ -20,7 +20,7 @@ ValuesEqual(T x1, T x2) {
|
|||||||
LIBC_NAMESPACE::fputil::FPBits<T> bits2(x2);
|
LIBC_NAMESPACE::fputil::FPBits<T> bits2(x2);
|
||||||
// If either is NaN, we want both to be NaN.
|
// If either is NaN, we want both to be NaN.
|
||||||
if (bits1.is_nan() || bits2.is_nan())
|
if (bits1.is_nan() || bits2.is_nan())
|
||||||
return bits2.is_nan() && bits2.is_nan();
|
return bits1.is_nan() && bits2.is_nan();
|
||||||
|
|
||||||
// For all other values, we want the values to be bitwise equal.
|
// For all other values, we want the values to be bitwise equal.
|
||||||
return bits1.uintval() == bits2.uintval();
|
return bits1.uintval() == bits2.uintval();
|
||||||
|
|||||||
Reference in New Issue
Block a user