aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2019-09-23 02:10:46 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2019-09-23 02:10:46 +0300
commitd82ce49e7f78d62c7df62f68d374203c040ba4ba (patch)
tree8e6cca3e67f63dcb48d3b511716c25760ef60633
parent8bc7650ee883b6f24cbebf40c4d2b007b0ed6255 (diff)
downloadlibADLMIDI-d82ce49e7f78d62c7df62f68d374203c040ba4ba.tar.gz
libADLMIDI-d82ce49e7f78d62c7df62f68d374203c040ba4ba.tar.bz2
libADLMIDI-d82ce49e7f78d62c7df62f68d374203c040ba4ba.zip
Fixed MSVC warning in adlmidi_opl3.cpp
-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 44322a3..7a1e845 100644
--- a/src/adlmidi_opl3.cpp
+++ b/src/adlmidi_opl3.cpp
@@ -307,7 +307,7 @@ void OPL3::setEmbeddedBank(uint32_t bank)
instOut.adl[op].carrier_E862 = op2.d_E862;
instOut.adl[op].carrier_40 = op2.d_40;
instOut.adl[op].feedconn = (instIn.fbConn >> (op * 8)) & 0xFF;
- instOut.adl[op].finetune = op == 0 ? instIn.noteOffset1 : instIn.noteOffset2;
+ instOut.adl[op].finetune = static_cast<int8_t>(op == 0 ? instIn.noteOffset1 : instIn.noteOffset2);
}
instOut.ms_sound_kon = instIn.delay_on_ms;
instOut.ms_sound_koff = instIn.delay_off_ms;