Fixes a bunch of 16-bit issues that the C5X compiler warns about

This commit is contained in:
Jean-Marc Valin 2012-03-08 14:09:09 -05:00
parent 59354a7742
commit 905197d750
25 changed files with 49 additions and 49 deletions

View file

@ -107,7 +107,7 @@ void silk_decode_core(
sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, sLPC_Q14[ i ] );
}
} else {
gain_adj_Q16 = 1 << 16;
gain_adj_Q16 = (opus_int32)1 << 16;
}
/* Save inv_gain */
@ -152,7 +152,7 @@ void silk_decode_core(
}
} else {
/* Update LTP state when Gain changes */
if( gain_adj_Q16 != 1 << 16 ) {
if( gain_adj_Q16 != (opus_int32)1 << 16 ) {
for( i = 0; i < lag + LTP_ORDER/2; i++ ) {
sLTP_Q15[ sLTP_buf_idx - i - 1 ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ sLTP_buf_idx - i - 1 ] );
}