diff options
| author | Tilka <tilkax@gmail.com> | 2024-08-14 19:49:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-14 19:49:44 +0100 |
| commit | 1e8b3a58b2ef312e0904d7fbb2a37efaee96dc8f (patch) | |
| tree | 3907abe83e78af3da58b4156bd43bde509fa4e25 /Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | |
| parent | 1b808789bc34429011a4d62e895e96afdf3bd46f (diff) | |
| parent | 15500198d8f3b5028fa8ee01ef7086af0b76fe04 (diff) | |
Merge pull request #13006 from tygyh/Remove-self-comparison
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); |
