From 905197d750d00c460c4940c42c3b7b9c2f85441c Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Thu, 8 Mar 2012 14:09:09 -0500 Subject: Fixes a bunch of 16-bit issues that the C5X compiler warns about --- silk/NSQ_del_dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'silk/NSQ_del_dec.c') 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 ] ); -- cgit v1.2.3