diff --git a/src/torrent.cpp b/src/torrent.cpp index fe161db10..b159f839a 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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); }