Merge pull request #13006 from tygyh/Remove-self-comparison

Remove self-comparison
This commit is contained in:
Tilka 2024-08-14 19:49:44 +01:00 committed by GitHub
commit 1e8b3a58b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);