diff options
author | Dave Chapman <dave@dchapman.com> | 2005-02-15 20:23:10 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-02-15 20:23:10 +0000 |
commit | 1ec83e2069f5d018659f8eb6e7aad7bbeb72a270 (patch) | |
tree | b2cdb7b441167682fbf59fbe032cd77286761fd8 /apps/codecs/libmad/layer3.c | |
parent | f59bfba60527cd0fa4f88eb8012d597533e3f310 (diff) | |
download | rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.tar.gz rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.zip |
Very minor changes to remove compiler warnings (tested with gcc-3.4.2 under Linux)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5958 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmad/layer3.c')
-rw-r--r-- | apps/codecs/libmad/layer3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libmad/layer3.c b/apps/codecs/libmad/layer3.c index 7a59e70241..df1084eb92 100644 --- a/apps/codecs/libmad/layer3.c +++ b/apps/codecs/libmad/layer3.c | |||
@@ -894,7 +894,7 @@ mad_fixed_t III_requantize(unsigned int value, signed int exp) | |||
894 | exp += power->exponent; | 894 | exp += power->exponent; |
895 | 895 | ||
896 | if (exp < 0) { | 896 | if (exp < 0) { |
897 | if (-exp >= sizeof(mad_fixed_t) * CHAR_BIT) { | 897 | if (-exp >= (signed int) (sizeof(mad_fixed_t) * CHAR_BIT)) { |
898 | /* underflow */ | 898 | /* underflow */ |
899 | requantized = 0; | 899 | requantized = 0; |
900 | } | 900 | } |
@@ -1053,7 +1053,7 @@ enum mad_error III_huffdecode(struct mad_bitptr *ptr, mad_fixed_t xr[576], | |||
1053 | break; | 1053 | break; |
1054 | 1054 | ||
1055 | case 15: | 1055 | case 15: |
1056 | if (cachesz < linbits + 2) { | 1056 | if ((unsigned int)cachesz < linbits + 2) { |
1057 | bitcache = (bitcache << 16) | mad_bit_read(&peek, 16); | 1057 | bitcache = (bitcache << 16) | mad_bit_read(&peek, 16); |
1058 | cachesz += 16; | 1058 | cachesz += 16; |
1059 | bits_left -= 16; | 1059 | bits_left -= 16; |
@@ -1088,7 +1088,7 @@ enum mad_error III_huffdecode(struct mad_bitptr *ptr, mad_fixed_t xr[576], | |||
1088 | break; | 1088 | break; |
1089 | 1089 | ||
1090 | case 15: | 1090 | case 15: |
1091 | if (cachesz < linbits + 1) { | 1091 | if ((unsigned int)cachesz < linbits + 1) { |
1092 | bitcache = (bitcache << 16) | mad_bit_read(&peek, 16); | 1092 | bitcache = (bitcache << 16) | mad_bit_read(&peek, 16); |
1093 | cachesz += 16; | 1093 | cachesz += 16; |
1094 | bits_left -= 16; | 1094 | bits_left -= 16; |