mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-10 13:54:18 +00:00
one more assert to complement previous commit
This commit is contained in:
parent
d8b8ff4b4f
commit
a654c48153
@ -3318,6 +3318,7 @@ namespace libtorrent
|
|||||||
TORRENT_ASSERT(block_size <= t->block_size());
|
TORRENT_ASSERT(block_size <= t->block_size());
|
||||||
|
|
||||||
r.length += block_size;
|
r.length += block_size;
|
||||||
|
TORRENT_ASSERT(block_size >= 0);
|
||||||
m_outstanding_bytes += block_size;
|
m_outstanding_bytes += block_size;
|
||||||
#if !defined TORRENT_DISABLE_INVARIANT_CHECKS && defined TORRENT_DEBUG
|
#if !defined TORRENT_DISABLE_INVARIANT_CHECKS && defined TORRENT_DEBUG
|
||||||
check_invariant();
|
check_invariant();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user