Ignore:
Timestamp:
Jul 1, 2010, 5:14:34 AM (12 years ago)
Author:
charles
Message:

(trunk libT) fix more issues found by -Wconversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.h

    r10912 r10918  
    277277tr_torPieceCountBlocks( const tr_torrent * tor, const tr_piece_index_t piece )
    278278{
    279     return piece == tor->info.pieceCount - 1 ? tor->blockCountInLastPiece
    280                                              : tor->blockCountInPiece;
     279    if( piece + 1 == tor->info.pieceCount )
     280        return tor->blockCountInLastPiece;
     281    else
     282        return tor->blockCountInPiece;
    281283}
    282284
Note: See TracChangeset for help on using the changeset viewer.