fixed build warning

This commit is contained in:
Arvid Norberg 2011-01-22 19:47:11 +00:00
parent 1dc0e71716
commit ec6ef250bf
1 changed files with 2 additions and 2 deletions

View File

@ -1208,8 +1208,8 @@ namespace libtorrent
// ugly edge case where padfiles are not used they way they're
// supposed to be. i.e. added back-to back or at the end
if (pb.block_index == blocks_per_piece) { pb.block_index = 0; ++pb.piece_index; }
if (pr.length > 0 && (boost::next(i) != end && boost::next(i)->pad_file)
|| boost::next(i) == end)
if (pr.length > 0 && ((boost::next(i) != end && boost::next(i)->pad_file)
|| boost::next(i) == end))
{
m_picker->mark_as_finished(pb, 0);
}