promote an assert to expensive invariant checks only
This commit is contained in:
parent
72360c3c27
commit
d168a709a2
|
@ -1732,8 +1732,10 @@ namespace libtorrent
|
|||
|
||||
for (int j = 0; j < blocks_per_piece; ++j)
|
||||
{
|
||||
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
|
||||
TORRENT_ASSERT(m_picker->is_finished(piece_block(index, j))
|
||||
== (i->info[j].state == piece_picker::block_info::state_finished));
|
||||
#endif
|
||||
if (i->info[j].state == piece_picker::block_info::state_finished)
|
||||
{
|
||||
corr += block_bytes_wanted(piece_block(index, j));
|
||||
|
|
Loading…
Reference in New Issue