From a8244b931301c52f0b64659376f923144d12e049 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 25 May 2022 01:15:07 -0500 Subject: [PATCH] [nostalgia/core/gba] Fix GCC 12 breaks --- src/nostalgia/core/gba/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/core/gba/gfx.cpp b/src/nostalgia/core/gba/gfx.cpp index 23a0a270..c0a6c377 100644 --- a/src/nostalgia/core/gba/gfx.cpp +++ b/src/nostalgia/core/gba/gfx.cpp @@ -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(~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(~Int_vblank); // disable vblank interrupt handler g_spriteBuffer[g_spriteUpdates] = oa; REG_IE = ie; // enable vblank interrupt handler }