[nostalgia/core/gba] Fix GCC 12 breaks
This commit is contained in:
parent
9417307a8e
commit
a8244b9313
@ -250,7 +250,7 @@ void hideSprite(Context*, unsigned idx) noexcept {
|
|||||||
REG_IE = REG_IE | Int_vblank; // enable vblank interrupt handler
|
REG_IE = REG_IE | Int_vblank; // enable vblank interrupt handler
|
||||||
} else {
|
} else {
|
||||||
const auto ie = REG_IE; // disable vblank interrupt handler
|
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;
|
g_spriteBuffer[g_spriteUpdates] = oa;
|
||||||
REG_IE = ie; // enable vblank interrupt handler
|
REG_IE = ie; // enable vblank interrupt handler
|
||||||
}
|
}
|
||||||
@ -285,7 +285,7 @@ void setSprite(Context*,
|
|||||||
REG_IE = REG_IE | Int_vblank; // enable vblank interrupt handler
|
REG_IE = REG_IE | Int_vblank; // enable vblank interrupt handler
|
||||||
} else {
|
} else {
|
||||||
const auto ie = REG_IE; // disable vblank interrupt handler
|
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;
|
g_spriteBuffer[g_spriteUpdates] = oa;
|
||||||
REG_IE = ie; // enable vblank interrupt handler
|
REG_IE = ie; // enable vblank interrupt handler
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user