From 669debaa42d8eada1dd2c18b9ba04d76f7c63432 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 28 May 2008 07:48:46 +0000 Subject: [PATCH] 64-bit issue fix --- src/torrent_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 06b6889b3..c7dd28096 100755 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -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);