[Scummvm-cvs-logs] scummvm master -> 4924c12b854d84aca57f1d0921ba1d2cc4abbb67

dreammaster dreammaster at scummvm.org
Thu Apr 28 13:04:11 CEST 2011


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:
4924c12b85 TINSEL: Fixed code analysis warnings in bug #3087863


Commit: 4924c12b854d84aca57f1d0921ba1d2cc4abbb67
    https://github.com/scummvm/scummvm/commit/4924c12b854d84aca57f1d0921ba1d2cc4abbb67
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-04-28T04:02:35-07:00

Commit Message:
TINSEL: Fixed code analysis warnings in bug #3087863

Changed paths:
    engines/tinsel/adpcm.cpp



diff --git a/engines/tinsel/adpcm.cpp b/engines/tinsel/adpcm.cpp
index ec51d15..9f951e8 100644
--- a/engines/tinsel/adpcm.cpp
+++ b/engines/tinsel/adpcm.cpp
@@ -44,14 +44,14 @@ void Tinsel_ADPCMStream::readBufferTinselHeader() {
 		// Negate
 		start = ~(start | 0xC0) + 1;
 
-		_status.predictor = 1 << start;
+		_status.predictor = (unsigned long long int)1 << start;
 	} else {
 		// Lower 6 bit are positive
 
 		// Truncate
 		start &= 0x1F;
 
-		_status.predictor = ((double) 1.0) / (1 << start);
+		_status.predictor = ((double) 1.0) / ((unsigned long long int)1 << start);
 	}
 
 	_status.K0 = TinselFilterTable[filterVal][0];






More information about the Scummvm-git-logs mailing list