diff options
author | 2020-06-07 00:27:36 +0900 | |
---|---|---|
committer | 2020-06-07 01:27:36 +1000 | |
commit | 08d6dfd88e8c84e1be92af8947f22cdb24b3614a (patch) | |
tree | f3c762d6367b9a6239dd4f5ff760fe6d814bfbd5 /src | |
parent | 5dfa023808a3b37f8093052357c46b886a854025 (diff) |
sid.cpp: Fix issue #6798 (#6799)
* sid.cpp: Fix issue #6798
* sid.cpp: Constant here
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/sound/sid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/sid.cpp b/src/devices/sound/sid.cpp index de56c65106e..26ba13a1f4b 100644 --- a/src/devices/sound/sid.cpp +++ b/src/devices/sound/sid.cpp @@ -209,7 +209,7 @@ void SID6581_t::init() { optr[v].sid = this; - int mod_voi = (v - 1) % max_voices; + u8 const mod_voi = ((v + max_voices) - 1) % max_voices; optr[v].modulator = &optr[mod_voi]; optr[mod_voi].carrier = &optr[v]; optr[v].filtVoiceMask = 1 << v; |