Ignore:
Timestamp:
Jun 7, 2008, 1:44:54 AM (13 years ago)
Author:
charles
Message:

minor refactoring of tr_bitfield to (a) simplify the tests and (b) make things easier to read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r6049 r6071  
    215215    assert( cp->blockBitfield );
    216216    assert( cp->blockBitfield->bits );
    217     assert( cp->blockBitfield->len );
     217    assert( cp->blockBitfield->bitCount );
    218218
    219219    return cp->blockBitfield;
     
    229229    assert( cp->blockBitfield );
    230230
    231     if( !cp || !bitfield || ( bitfield->len != cp->blockBitfield->len ) )
     231    if( !cp || !bitfield || ( bitfield->byteCount != cp->blockBitfield->byteCount ) )
    232232        return TR_ERROR_ASSERT;
    233233
Note: See TracChangeset for help on using the changeset viewer.