Changeset 12515


Ignore:
Timestamp:
Jun 25, 2011, 1:31:25 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) #4332 "countRange/countArray exception" -- fix bug in tr_cpMissingBytesInPiece()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r12262 r12515  
    215215        tr_block_index_t f, l;
    216216        tr_torGetPieceBlockRange( cp->tor, piece, &f, &l );
    217         haveBytes = tr_bitfieldCountRange( &cp->blockBitfield, f, l );
     217        haveBytes = tr_bitfieldCountRange( &cp->blockBitfield, f, l+1 );
    218218        haveBytes *= cp->tor->blockSize;
    219219        if( tr_bitfieldHas( &cp->blockBitfield, l ) )
Note: See TracChangeset for help on using the changeset viewer.