From b8f92368baca15f7520a0a3124b5899909c63042 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Thu, 9 Nov 2017 01:22:57 +0300 Subject: Fixed a small warning --- src/adlmidi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adlmidi.cpp') diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index d6471e9..5e252db 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -133,7 +133,7 @@ ADLMIDI_EXPORT int adl_setNumFourOpsChn(ADL_MIDIPlayer *device, int ops4) if(!device) return -1; MIDIplay *play = reinterpret_cast(device->adl_midiPlayer); - if(ops4 > 6 * play->m_setup.NumCards) + if((unsigned int)ops4 > 6 * play->m_setup.NumCards) { std::stringstream s; s << "number of four-op channels may only be 0.." << (6 * (play->m_setup.NumCards)) << " when " << play->m_setup.NumCards << " OPL3 cards are used.\n"; -- cgit v1.2.3