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.zip rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.tar.gz rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.tar.bz2 rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.tar.xz | |
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 7a59e70..df1084e 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) exp += power->exponent; if (exp < 0) { - if (-exp >= sizeof(mad_fixed_t) * CHAR_BIT) { + if (-exp >= (signed int) (sizeof(mad_fixed_t) * CHAR_BIT)) { /* underflow */ requantized = 0; } @@ -1053,7 +1053,7 @@ enum mad_error III_huffdecode(struct mad_bitptr *ptr, mad_fixed_t xr[576], break; case 15: - if (cachesz < linbits + 2) { + if ((unsigned int)cachesz < linbits + 2) { bitcache = (bitcache << 16) | mad_bit_read(&peek, 16); cachesz += 16; bits_left -= 16; @@ -1088,7 +1088,7 @@ enum mad_error III_huffdecode(struct mad_bitptr *ptr, mad_fixed_t xr[576], break; case 15: - if (cachesz < linbits + 1) { + if ((unsigned int)cachesz < linbits + 1) { bitcache = (bitcache << 16) | mad_bit_read(&peek, 16); cachesz += 16; bits_left -= 16; |