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 }