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

(trunk libT) a couple more minor -Wconversion warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10918 r10919  
    11731173        const uint64_t b = isSeed ? tor->info.files[i].length : fileBytesCompleted( tor, i );
    11741174        walk->bytesCompleted = b;
    1175         walk->progress = tor->info.files[i].length > 0 ? ( (float)b / tor->info.files[i].length ) : 1.0;
     1175        walk->progress = tor->info.files[i].length > 0 ? ( b / tor->info.files[i].length ) : 1.0;
    11761176    }
    11771177
     
    18431843    tr_file *        file;
    18441844    const int8_t     dnd = !doDownload;
    1845     tr_piece_index_t firstPiece, firstPieceDND;
    1846     tr_piece_index_t lastPiece, lastPieceDND;
     1845    tr_piece_index_t firstPiece;
     1846    int8_t           firstPieceDND;
     1847    tr_piece_index_t lastPiece;
     1848    int8_t           lastPieceDND;
    18471849    tr_file_index_t  i;
    18481850
Note: See TracChangeset for help on using the changeset viewer.