(trunk libT) remove an assertion from bitfield that doesn't always need to be true
authorJordan Lee <jordan@transmissionbt.com>
Wed, 6 Apr 2011 04:55:57 +0000 (04:55 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 6 Apr 2011 04:55:57 +0000 (04:55 +0000)
libtransmission/bitfield.c

index 6829f9954b8be72268a0fbd898b23dea3f5d9bcc..fb62310a8a04eefee16983760422a8d79bbb61f9 100644 (file)
@@ -170,7 +170,6 @@ tr_bitfieldGetRaw( const tr_bitfield * b, size_t * byte_count )
     uint8_t * bits = tr_new0( uint8_t, n );
 
     assert( b->bit_count > 0 );
-    assert( n >= b->alloc_count );
 
     if( b->alloc_count )
         memcpy( bits, b->bits, b->alloc_count );