From 15500198d8f3b5028fa8ee01ef7086af0b76fe04 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Wed, 14 Aug 2024 08:22:57 +0200 Subject: [PATCH] Remove self-comparison --- Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); - if (!actual || actual != actual) + if (!actual || std::isnan(actual)) EXPECT_EQ(std::bit_cast(expected), std::bit_cast(actual)); else EXPECT_EQ(expected, actual);