first stab at sparse files support

This commit is contained in:
Arvid Norberg
2007-04-17 21:54:40 +00:00
parent 3794b49e3a
commit 16e17f066c
6 changed files with 139 additions and 15 deletions

View File

@@ -712,7 +712,7 @@ namespace libtorrent
m_piece_info.resize(3);
}
int last_index = m_piece_info.size() - 1;
if (m_piece_info.size() & 1 == 0)
if ((m_piece_info.size() & 1) == 0)
{
// if there's an even number of vectors, swap
// the last two to get the same layout in both cases