From c19304d9f3fa8cde0cd8e31d8236bf99ddccffd8 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 23 Oct 2016 23:16:34 +0300 Subject: Fixed build on Windows --- src/adlmidi.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 050924e..04f71b2 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -889,15 +889,15 @@ public: struct adldata adl; struct adlinsdata adlins; adl.modulator_E862 = - ((uint(InsData[8]&0x07) << 24)&0xFF000000)//WaveForm - | ((uint(InsData[6]) << 16)&0x00FF0000)//Sustain/Release - | ((uint(InsData[4]) << 8)&0x0000FF00)//Attack/Decay - | ((uint(InsData[0]) << 0)&0x000000FF);//MultKEVA + (((unsigned int)(InsData[8]&0x07) << 24)&0xFF000000)//WaveForm + | (((unsigned int)(InsData[6]) << 16)&0x00FF0000)//Sustain/Release + | (((unsigned int)(InsData[4]) << 8)&0x0000FF00)//Attack/Decay + | (((unsigned int)(InsData[0]) << 0)&0x000000FF);//MultKEVA adl.carrier_E862 = - ((uint(InsData[9]&0x07) << 24)&0xFF000000)//WaveForm - | ((uint(InsData[7]) << 16)&0x00FF0000)//Sustain/Release - | ((uint(InsData[5]) << 8)&0x0000FF00)//Attack/Decay - | ((uint(InsData[1]) << 0)&0x000000FF);//MultKEVA + (((unsigned int)(InsData[9]&0x07) << 24)&0xFF000000)//WaveForm + | (((unsigned int)(InsData[7]) << 16)&0x00FF0000)//Sustain/Release + | (((unsigned int)(InsData[5]) << 8)&0x0000FF00)//Attack/Decay + | (((unsigned int)(InsData[1]) << 0)&0x000000FF);//MultKEVA adl.modulator_40 = InsData[2]; adl.carrier_40 = InsData[3]; adl.feedconn = InsData[10]&0x0F; -- cgit v1.2.3