some boost 1.34 preprocessor conditions and fixed assert in piece_picker

This commit is contained in:
Arvid Norberg
2007-04-23 17:14:40 +00:00
parent e5a20b8de6
commit 094dc1065c
5 changed files with 11 additions and 4 deletions

View File

@@ -725,7 +725,8 @@ namespace libtorrent
assert(m_piece_info[last_index].empty());
if (last_index >= cap_index)
{
assert(m_piece_info[cap_index - 1].empty());
assert(pushed_out_index == cap_index - 1
|| m_piece_info[cap_index - 1].empty());
m_piece_info[cap_index].swap(m_piece_info[cap_index - 2]);
if (cap_index == pushed_out_index)
pushed_out_index = cap_index - 2;