fix compiler warnings reported by wereHamster

This commit is contained in:
Charles Kerr
2007-07-25 17:27:19 +00:00
parent 66883e72a9
commit e8fb29ea44
4 changed files with 5 additions and 7 deletions

View File

@@ -354,7 +354,7 @@ static int parsePiece( tr_torrent_t * tor, tr_peer_t * peer,
pieces in our announce data, as it could give us a misleadingly
bad share ratio . (Ticket #263) */
const int byteCount = tr_pieceSize( index );
if( tor->downloadedCur >= byteCount )
if( tor->downloadedCur >= (uint64_t)byteCount )
tor->downloadedCur -= byteCount;
return ret;