aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2016-10-23 23:16:34 +0300
committerWohlstand <admin@wohlnet.ru>2016-10-23 23:16:34 +0300
commitc19304d9f3fa8cde0cd8e31d8236bf99ddccffd8 (patch)
tree3d755e84e34ad567b5ea19d831938155e2ef60c9
parent419d96edc3008ccc0fadbddb1b6b426f713229d3 (diff)
downloadlibADLMIDI-c19304d9f3fa8cde0cd8e31d8236bf99ddccffd8.tar.gz
libADLMIDI-c19304d9f3fa8cde0cd8e31d8236bf99ddccffd8.tar.bz2
libADLMIDI-c19304d9f3fa8cde0cd8e31d8236bf99ddccffd8.zip
Fixed build on Windows
-rw-r--r--src/adlmidi.cpp16
1 files changed, 8 insertions, 8 deletions
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;