TINSEL: Fixed code analysis warnings in bug #3087863

This commit is contained in:
Paul Gilbert 2011-04-28 21:02:35 +10:00
parent 13efaff2ad
commit 4924c12b85

View File

@ -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];