64-bit issue fix

This commit is contained in:
Arvid Norberg 2008-05-28 07:48:46 +00:00
parent c7c1a3913e
commit 669debaa42
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ namespace libtorrent
if (index == num_pieces()-1)
{
int size = int(total_size()
- (num_pieces() - 1) * piece_length());
- size_type(num_pieces() - 1) * piece_length());
TORRENT_ASSERT(size > 0);
TORRENT_ASSERT(size <= piece_length());
return int(size);