Ignore:
Timestamp:
Jul 3, 2010, 3:11:38 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix overflow error in fileBytesCompleted()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10931 r10935  
    11521152            /* the last block */
    11531153            if( tr_cpBlockIsCompleteFast( &tor->completion, lastBlock ) )
    1154                 total += ( f->offset + f->length ) - ( tor->blockSize * lastBlock );
     1154                total += ( f->offset + f->length ) - ( (uint64_t)tor->blockSize * lastBlock );
    11551155        }
    11561156    }
Note: See TracChangeset for help on using the changeset viewer.