diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-03-08 23:09:09 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-03-08 23:09:09 +0400 |
commit | 905197d750d00c460c4940c42c3b7b9c2f85441c (patch) | |
tree | a81fb46750b02635cad0c22bb429a6b41d294ed3 /silk/decode_core.c | |
parent | 59354a7742ff0fc182886f2f2567026e516c1eef (diff) |
Fixes a bunch of 16-bit issues that the C5X compiler warns about
Diffstat (limited to 'silk/decode_core.c')
-rw-r--r-- | silk/decode_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/silk/decode_core.c b/silk/decode_core.c index ff3ab795..e3ed41e6 100644 --- a/silk/decode_core.c +++ b/silk/decode_core.c @@ -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 ] ); } |