Fixes for CLang-specific warnings.

This commit is contained in:
OBattler
2025-08-24 01:11:54 +02:00
parent d7a714185c
commit 9a7d63650b
5 changed files with 8 additions and 8 deletions

View File

@@ -2475,7 +2475,7 @@ mach_out(uint16_t addr, uint8_t val, void *priv)
if ((svga->crtcreg == 7) && ((svga->crtc[0x11] & 0x80) || (mach->regs[0xb4] & 0x40)) && !(mach->regs[0xb4] & 0x80))
val = (svga->crtc[7] & ~0x10) | (val & 0x10);
if (mach->regs[0xb8] & 0x04) {
if ((svga->crtcreg < 0x0a) && (svga->crtcreg > 0x0d))
if ((svga->crtcreg < 0x0a) || (svga->crtcreg > 0x0d))
return;
}
if (mach->regs[0xb4] & 0x04) {