Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2012-03-08 23:09:09 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-03-08 23:09:09 +0400
commit905197d750d00c460c4940c42c3b7b9c2f85441c (patch)
treea81fb46750b02635cad0c22bb429a6b41d294ed3 /silk/NSQ_del_dec.c
parent59354a7742ff0fc182886f2f2567026e516c1eef (diff)
Fixes a bunch of 16-bit issues that the C5X compiler warns about
Diffstat (limited to 'silk/NSQ_del_dec.c')
-rw-r--r--silk/NSQ_del_dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/silk/NSQ_del_dec.c b/silk/NSQ_del_dec.c
index d4ee0fbc..c58ff78b 100644
--- a/silk/NSQ_del_dec.c
+++ b/silk/NSQ_del_dec.c
@@ -645,7 +645,7 @@ static inline void silk_nsq_del_dec_scale_states(
if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) {
gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 );
} else {
- gain_adj_Q16 = 1 << 16;
+ gain_adj_Q16 = (opus_int32)1 << 16;
}
/* Scale input */
@@ -670,7 +670,7 @@ static inline void silk_nsq_del_dec_scale_states(
}
/* Adjust for changing gain */
- if( gain_adj_Q16 != 1 << 16 ) {
+ if( gain_adj_Q16 != (opus_int32)1 << 16 ) {
/* Scale long-term shaping state */
for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx; i++ ) {
NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] );