[nostalgia/core/gba] Fix GCC 12 breaks

This commit is contained in:
Gary Talent 2022-05-25 01:15:07 -05:00
parent 9417307a8e
commit a8244b9313

View File

@ -250,7 +250,7 @@ void hideSprite(Context*, unsigned idx) noexcept {
REG_IE = REG_IE | Int_vblank; // enable vblank interrupt handler
} else {
const auto ie = REG_IE; // disable vblank interrupt handler
REG_IE = REG_IE & ~Int_vblank; // disable vblank interrupt handler
REG_IE = REG_IE & static_cast<uint16_t>(~Int_vblank); // disable vblank interrupt handler
g_spriteBuffer[g_spriteUpdates] = oa;
REG_IE = ie; // enable vblank interrupt handler
}
@ -285,7 +285,7 @@ void setSprite(Context*,
REG_IE = REG_IE | Int_vblank; // enable vblank interrupt handler
} else {
const auto ie = REG_IE; // disable vblank interrupt handler
REG_IE = REG_IE & ~Int_vblank; // disable vblank interrupt handler
REG_IE = REG_IE & static_cast<uint16_t>(~Int_vblank); // disable vblank interrupt handler
g_spriteBuffer[g_spriteUpdates] = oa;
REG_IE = ie; // enable vblank interrupt handler
}