fixed some warnings

This commit is contained in:
Arvid Norberg
2011-02-15 10:05:25 +00:00
parent d35670e53d
commit c4c1773ceb
11 changed files with 23 additions and 26 deletions

View File

@@ -1104,7 +1104,7 @@ namespace libtorrent
// maintain sparse_regions
if (index == 0)
{
if (index == m_piece_map.size() - 1
if (index == int(m_piece_map.size()) - 1
|| m_piece_map[index + 1].have())
--m_sparse_regions;
}