From d6c0e75a6051dd271dfce7bb275646a18c05bb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Wed, 14 Jun 2023 14:22:32 +0100 Subject: [PATCH] fix: parenthesis issue --- src/apu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apu.rs b/src/apu.rs index 649aef41..1b86fa5e 100644 --- a/src/apu.rs +++ b/src/apu.rs @@ -353,7 +353,7 @@ impl Apu { // 0xFF15 — Not used 0xff15 => 0xff, // 0xFF16 — NR21: Channel 2 length timer & duty cycle - 0xff16 => (self.ch2_wave_duty & 0x03) << 6 | 0x3f, + 0xff16 => ((self.ch2_wave_duty & 0x03) << 6) | 0x3f, // 0xFF17 — NR22: Channel 2 volume & envelope 0xff17 => { (self.ch2_pace & 0x07) -- GitLab