From 09655f7d57e3233908b36228b73d6613f233ae8e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 7 Mar 2022 23:09:42 -0500 Subject: [PATCH] WonderSwan: fix build --- src/engine/platform/swan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/swan.cpp b/src/engine/platform/swan.cpp index e7cefc46..8fdca1d4 100644 --- a/src/engine/platform/swan.cpp +++ b/src/engine/platform/swan.cpp @@ -222,7 +222,7 @@ void DivPlatformSwan::tick() { if (chan[3].std.hadDuty) { noise=chan[3].std.duty; if (noise>0) { - rWrite(0x0e,(noise-1)&0x07|0x18); + rWrite(0x0e,((noise-1)&0x07)|0x18); sndCtrl|=0x80; } else { sndCtrl&=~0x80; @@ -378,7 +378,7 @@ int DivPlatformSwan::dispatch(DivCommand c) { case DIV_CMD_STD_NOISE_MODE: if (c.chan==3) { noise=c.value&0xff; - if (noise>0) rWrite(0x0e,(noise-1)&0x07|0x18); + if (noise>0) rWrite(0x0e,((noise-1)&0x07)|0x18); } break; case DIV_CMD_SAMPLE_MODE: