diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-09-30 06:02:51 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-09-30 06:02:51 +0300 |
commit | 64892d58b91e6abd9acc5204760811cbe06abc21 (patch) | |
tree | 732920cf0471c4b396c69227acf052dc5fe3f00b /src/adlmidi.cpp | |
parent | fb0304b01968fd2a3279a87a5825bdedfa2d5289 (diff) | |
download | libADLMIDI-64892d58b91e6abd9acc5204760811cbe06abc21.tar.gz libADLMIDI-64892d58b91e6abd9acc5204760811cbe06abc21.tar.bz2 libADLMIDI-64892d58b91e6abd9acc5204760811cbe06abc21.zip |
TRUE Fix the 4-op channels count setup
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index e104465..d0aa85f 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -383,7 +383,7 @@ ADLMIDI_EXPORT int adl_setNumFourOpsChn(ADL_MIDIPlayer *device, int ops4) MidiPlayer *play = GET_MIDI_PLAYER(device); assert(play); - if((ops4 >= 0) && (unsigned int)ops4 > 6 * play->m_setup.numChips) + if(ops4 > 6 * static_cast<int>(play->m_setup.numChips)) { char errBuff[250]; snprintf(errBuff, 250, "number of four-op channels may only be 0..%u when %u OPL3 cards are used.\n", (6 * (play->m_setup.numChips)), play->m_setup.numChips); |