SCUMM: DIMUSE: Fix signed integer overflow warning from UBSan

UBSan would report this when starting Full Throttle, for example:

  runtime error: signed integer overflow: 2147287044 + 393204 cannot be
     represented in type 'int'

Change checked by AndywinXp.
This commit is contained in:
Donovan Watteau 2023-01-18 20:47:46 +01:00
parent 7a522f5ec3
commit af841a27c7

View File

@ -74,8 +74,8 @@ static const int8 _stereoVolumeTable[284] = {
int IMuseDigiInternalMixer::init(int bytesPerSample, int numChannels, uint8 *mixBuf, int mixBufSize, int sizeSampleKB, int mixChannelsNum) {
int amplitudeValue;
int waveMixChannelsCount;
int softLdenominator;
int softLnumerator;
uint softLdenominator;
uint softLnumerator;
int softLcurValue;
int zeroCenterOffset;