fix compiler warnings reported by wereHamster

This commit is contained in:
Charles Kerr
2007-07-25 17:27:19 +00:00
parent 66883e72a9
commit e8fb29ea44
4 changed files with 5 additions and 7 deletions

View File

@@ -588,8 +588,6 @@ void
tr_bitfieldAdd( tr_bitfield_t * bitfield, size_t nth )
{
assert( bitfield != NULL );
assert( 0 <= nth);
assert( 0 <= BIN(nth) );
assert( BIN(nth) < bitfield->len );
bitfield->bits[ BIN(nth) ] |= BIT(nth);
}
@@ -611,7 +609,7 @@ tr_bitfieldRem( tr_bitfield_t * bitfield,
{
if( bitfield != NULL )
{
const int bin = BIN(nth);
const size_t bin = BIN(nth);
assert( bin < bitfield->len );
bitfield->bits[bin] &= ~BIT(nth);
}