mirror of
https://github.com/xiph/opus.git
synced 2025-05-27 21:59:12 +00:00
Fixes a bunch of 16-bit issues that the C5X compiler warns about
This commit is contained in:
parent
59354a7742
commit
905197d750
25 changed files with 49 additions and 49 deletions
|
@ -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 ] );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue