(trunk libT) fix bitfield assertion failure due to invalid assumption in tr_bitfieldIsValid()

This commit is contained in:
Jordan Lee 2011-03-29 01:47:17 +00:00
parent 947134bbb3
commit 5fcec12cfd
1 changed files with 0 additions and 1 deletions

View File

@ -116,7 +116,6 @@ static bool
tr_bitfieldIsValid( const tr_bitfield * b )
{
return ( b != NULL )
&& ( b->bits || ( tr_bitfieldHasAll( b ) || tr_bitfieldHasNone( b )))
&& ( b->byte_count <= b->bit_count )
&& ( b->true_count <= b->bit_count )
&& ( !b->bits || ( b->true_count == countRange( b, 0, b->bit_count )));