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

@ -73,14 +73,14 @@ static inline void silk_LP_interpolate_filter_taps(
silk_Transition_LP_B_Q28[ ind + 1 ][ nb ],
silk_Transition_LP_B_Q28[ ind + 1 ][ nb ] -
silk_Transition_LP_B_Q28[ ind ][ nb ],
fac_Q16 - ( 1 << 16 ) );
fac_Q16 - ( (opus_int32)1 << 16 ) );
}
for( na = 0; na < TRANSITION_NA; na++ ) {
A_Q28[ na ] = silk_SMLAWB(
silk_Transition_LP_A_Q28[ ind + 1 ][ na ],
silk_Transition_LP_A_Q28[ ind + 1 ][ na ] -
silk_Transition_LP_A_Q28[ ind ][ na ],
fac_Q16 - ( 1 << 16 ) );
fac_Q16 - ( (opus_int32)1 << 16 ) );
}
}
} else {