diff options
| author | Dr. Dystopia <jonis9898@hotmail.com> | 2024-08-14 08:22:57 +0200 |
|---|---|---|
| committer | Dr. Dystopia <jonis9898@hotmail.com> | 2024-08-14 14:50:15 +0200 |
| commit | 15500198d8f3b5028fa8ee01ef7086af0b76fe04 (patch) | |
| tree | e0fe2729c151a279ae7bfabb82f77dc23494ceb9 /Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | |
| parent | 5af0ae25e6ebeaec187950f579f722637546740f (diff) | |
Remove self-comparison
Diffstat (limited to 'Source/UnitTests/VideoCommon/VertexLoaderTest.cpp')
| -rw-r--r-- | Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp index 853d690142..09d6ce3be5 100644 --- a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp +++ b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp @@ -80,7 +80,7 @@ protected: // Read unswapped. const float actual = m_dst.Read<float, false>(); - if (!actual || actual != actual) + if (!actual || std::isnan(actual)) EXPECT_EQ(std::bit_cast<u32>(expected), std::bit_cast<u32>(actual)); else EXPECT_EQ(expected, actual); |
