mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
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:
parent
7a522f5ec3
commit
af841a27c7
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user