(trunk libT) remove the r9933 assertions and maybe fix Yada's bug
This commit is contained in:
parent
e1005726a2
commit
bf08de36d9
|
@ -53,11 +53,8 @@ tr_bitsetReserve( tr_bitset * b, size_t size )
|
||||||
tr_bitfieldDestruct( &b->bitfield );
|
tr_bitfieldDestruct( &b->bitfield );
|
||||||
tr_bitfieldConstruct( &b->bitfield, size );
|
tr_bitfieldConstruct( &b->bitfield, size );
|
||||||
|
|
||||||
assert( b != NULL );
|
if( ( tmp->bits != NULL ) && ( tmp->byteCount > 0 ) )
|
||||||
assert( b->bitfield.bits != NULL );
|
memcpy( b->bitfield.bits, tmp->bits, tmp->byteCount );
|
||||||
assert( tmp->bits != NULL );
|
|
||||||
|
|
||||||
memcpy( b->bitfield.bits, tmp->bits, tmp->byteCount );
|
|
||||||
|
|
||||||
tr_bitfieldFree( tmp );
|
tr_bitfieldFree( tmp );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue