diff options
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r-- | src/adlmidi_opl3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 49fa1bc..2a8aaa9 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -335,7 +335,7 @@ void OPL3::Touch(unsigned c, unsigned volume) // Volume maxes at 127*127*127 void OPL3::setPatch(size_t c, const adldata &instrument) { - uint16_t chip = c / 23, cc = c % 23; + size_t chip = c / 23, cc = c % 23; static const uint8_t data[4] = {0x20, 0x60, 0x80, 0xE0}; m_insCache[c] = instrument; uint16_t o1 = g_operatorsMap[cc * 2 + 0]; |