1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2005-02-15 20:23:10 +00:00
parent f59bfba605
commit 1ec83e2069
4 changed files with 14 additions and 7 deletions

View file

@ -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;