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/decode_core.c
parent59354a7742ff0fc182886f2f2567026e516c1eef (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.c4
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 ] );
}