diff options
author | Wohlstand <admin@wohlnet.ru> | 2018-06-03 15:46:50 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2018-06-03 15:46:50 +0300 |
commit | adcf702a7e18846ad4f8753ec5a32cf56585ca23 (patch) | |
tree | d2b357b91695868c8d2b48ecf6e4cd82d2f9cfe6 /src/adlmidi_mus2mid.c | |
parent | c4c36c82919b3136b9592db1f7872fc7d4907589 (diff) | |
download | libADLMIDI-adcf702a7e18846ad4f8753ec5a32cf56585ca23.tar.gz libADLMIDI-adcf702a7e18846ad4f8753ec5a32cf56585ca23.tar.bz2 libADLMIDI-adcf702a7e18846ad4f8753ec5a32cf56585ca23.zip |
Bugfixes
- Fixed all MSVC 2015/2017 warnings in both 32 and 64 bit builds
- Fixed weird behavior when using adl_setHVibrato, adl_setHTremolo, adl_setScaleModulators, and adl_setVolumeRangeModel when passing the -1 "Auto" state
- Move arpeggio counter into the MIDIPlay class as originally it was a global static variable which is ugly and danger when running multiple instances of the same library
Diffstat (limited to 'src/adlmidi_mus2mid.c')
-rw-r--r-- | src/adlmidi_mus2mid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_mus2mid.c b/src/adlmidi_mus2mid.c index 8268198..3f3e1b8 100644 --- a/src/adlmidi_mus2mid.c +++ b/src/adlmidi_mus2mid.c @@ -416,7 +416,7 @@ int AdlMidi_mus2midi(uint8_t *in, uint32_t insize, memcpy(ctx.dst_ptr, temp_buffer, out_local - temp_buffer); ctx.dst_ptr += out_local - temp_buffer; - ctx.dstrem -= out_local - temp_buffer; + ctx.dstrem -= (uint32_t)(out_local - temp_buffer); } if (event & 128) { |