Browse Source

one more assert to complement previous commit

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
a654c48153
  1. 1
      libtorrent/src/peer_connection.cpp

1
libtorrent/src/peer_connection.cpp

@ -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…
Cancel
Save