summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2007-07-13 01:41:31 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2007-07-13 01:41:31 +0000
commit4f9bffe18e0c8bc546f03612052803134497114b (patch)
treef097d529eb6925a310de7b829ab904704b2c5e1d
parent42bd5b46f09556e04994981e83d8da397912a303 (diff)
downloadrockbox-4f9bffe18e0c8bc546f03612052803134497114b.tar.gz
rockbox-4f9bffe18e0c8bc546f03612052803134497114b.zip
Fix warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13866 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/libwma/bitstream.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/codecs/libwma/bitstream.c b/apps/codecs/libwma/bitstream.c
index 12cf0518ee..bce7ee2ae6 100644
--- a/apps/codecs/libwma/bitstream.c
+++ b/apps/codecs/libwma/bitstream.c
@@ -119,7 +119,8 @@ static int build_table(VLC *vlc, int table_nb_bits,
const void *codes, int codes_wrap, int codes_size,
uint32_t code_prefix, int n_prefix)
{
- int i, j, k, n, table_size, table_index, nb, n1, index, code_prefix2;
+ int i, j, k, n, table_size, table_index, nb, n1, index;
+ uint32_t code_prefix2;
uint32_t code;
int flags = 0;
VLC_TYPE (*table)[2];
@@ -152,7 +153,7 @@ static int build_table(VLC *vlc, int table_nb_bits,
/* if code matches the prefix, it is in the table */
n -= n_prefix;
if(flags & INIT_VLC_LE)
- code_prefix2= code & (n_prefix>=32 ? 0xffffffff : (1 << n_prefix)-1);
+ code_prefix2= code & (n_prefix>=32 ? 0xffffffff : (uint32_t)( (1 << n_prefix)-1));
else
code_prefix2= code >> n;
if (n > 0 && code_prefix2 == code_prefix) {