From 4e4cec1b64577707531c6c01ed56855a246f01d9 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 20 Dec 2023 19:01:31 -0600 Subject: [PATCH] [teagba] Change a reinterpret_cast to bit_cast --- deps/teagba/src/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/teagba/src/gfx.cpp b/deps/teagba/src/gfx.cpp index cdce26cd..0fb2bf49 100644 --- a/deps/teagba/src/gfx.cpp +++ b/deps/teagba/src/gfx.cpp @@ -33,7 +33,7 @@ void applySpriteUpdates() noexcept { const unsigned updates = g_spriteUpdates; for (unsigned i = 0; i < updates; ++i) { const auto &oa = g_spriteBuffer[i]; - MEM_OAM[oa.idx] = *reinterpret_cast(&oa); + MEM_OAM[oa.idx] = std::bit_cast(oa); } g_spriteUpdates = 0; }