From a654c481531a8e21b9df968ac2591f822f428918 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 6 Nov 2013 11:53:16 -0200 Subject: [PATCH] one more assert to complement previous commit --- libtorrent/src/peer_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libtorrent/src/peer_connection.cpp b/libtorrent/src/peer_connection.cpp index 3811a627..3a0aadb1 100644 --- a/libtorrent/src/peer_connection.cpp +++ b/libtorrent/src/peer_connection.cpp @@ -3318,6 +3318,7 @@ namespace libtorrent TORRENT_ASSERT(block_size <= t->block_size()); r.length += block_size; + TORRENT_ASSERT(block_size >= 0); m_outstanding_bytes += block_size; #if !defined TORRENT_DISABLE_INVARIANT_CHECKS && defined TORRENT_DEBUG check_invariant();