[teagba] Change a reinterpret_cast to bit_cast

This commit is contained in:
Gary Talent 2023-12-20 19:01:31 -06:00
parent 9840b6fdee
commit 4e4cec1b64

View File

@ -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<const uint64_t*>(&oa);
MEM_OAM[oa.idx] = std::bit_cast<uint64_t>(oa);
}
g_spriteUpdates = 0;
}