aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-06-24 23:23:57 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-06-24 23:23:57 +0300
commitec93b221f77ddc3354d78ab4cc06968cd530e09a (patch)
tree3a35f9fd0101e7294ffbf8ab93f3d1f707d6c40c /src
parent7e988eeb6b27c2001c401d7585e5030b48ee8bed (diff)
downloadlibADLMIDI-ec93b221f77ddc3354d78ab4cc06968cd530e09a.tar.gz
libADLMIDI-ec93b221f77ddc3354d78ab4cc06968cd530e09a.tar.bz2
libADLMIDI-ec93b221f77ddc3354d78ab4cc06968cd530e09a.zip
Fix MSVC warnings
Diffstat (limited to 'src')
-rw-r--r--src/adlmidi_opl3.cpp2
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];