[Scummvm-git-logs] scummvm master -> 65e4b21674f0711ccb162afce0c108d31db0e3b8

lephilousophe lephilousophe at users.noreply.github.com
Sun Mar 14 19:33:07 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
65e4b21674 AUDIO: Fix int constant while int32 was expected


Commit: 65e4b21674f0711ccb162afce0c108d31db0e3b8
    https://github.com/scummvm/scummvm/commit/65e4b21674f0711ccb162afce0c108d31db0e3b8
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2021-03-14T20:32:45+01:00

Commit Message:
AUDIO: Fix int constant while int32 was expected

This errors out on AmigaOS4

Changed paths:
    audio/decoders/xan_dpcm.cpp


diff --git a/audio/decoders/xan_dpcm.cpp b/audio/decoders/xan_dpcm.cpp
index 0c2f221ba6..e621ff1405 100644
--- a/audio/decoders/xan_dpcm.cpp
+++ b/audio/decoders/xan_dpcm.cpp
@@ -65,7 +65,7 @@ public:
 				*pshift = 15;
 			}
 			*ppred += (diff >> *pshift);
-			*ppred = CLIP(*ppred, -32768, 32767);
+			*ppred = CLIP(*ppred, (int32)-32768, (int32)32767);
 			*buffer = *ppred;
 			buffer++;
 			if (_data->eos())




More information about the Scummvm-git-logs mailing list