From fbbfea8e8e536800a6a911eb90cecdd1f343f9e3 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Fri, 5 Aug 2022 21:10:17 -0700 Subject: Replace Common::BitCast with std::bit_cast --- Source/Core/VideoCommon/VertexLoaderBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexLoaderBase.cpp') diff --git a/Source/Core/VideoCommon/VertexLoaderBase.cpp b/Source/Core/VideoCommon/VertexLoaderBase.cpp index 11ac3833c7..40c82145b0 100644 --- a/Source/Core/VideoCommon/VertexLoaderBase.cpp +++ b/Source/Core/VideoCommon/VertexLoaderBase.cpp @@ -113,7 +113,7 @@ public: // Some games (e.g. Donkey Kong Country Returns) have a few draws that contain NaN. // Since NaN != NaN, we need to compare the bits instead. const auto bit_equal = [](float val_a, float val_b) { - return Common::BitCast(val_a) == Common::BitCast(val_b); + return std::bit_cast(val_a) == std::bit_cast(val_b); }; // The last element is allowed to be garbage for SIMD overwrites. -- cgit v1.2.3