From b5467845d7901a14984e25bd8584fd4dc3b8133e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 30 Jul 2008 08:52:39 +0000 Subject: [PATCH] fixed assert in file_progress and build issue when built with expensive invariant checks --- src/torrent.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index d2e1b8064..66a0b0797 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3466,7 +3466,7 @@ namespace libtorrent for (policy::const_iterator i = m_policy.begin_peer() , end(m_policy.end_peer()); i != end; ++i) { - TORRENT_ASSERT(i->second.ip.address() == i->first); + TORRENT_ASSERT(i->second.addr == i->first); } #endif @@ -4144,7 +4144,6 @@ namespace libtorrent TORRENT_ASSERT(valid_metadata()); fp.resize(m_torrent_file->num_files(), 0); - TORRENT_ASSERT(has_picker()); if (is_seed()) { @@ -4153,6 +4152,8 @@ namespace libtorrent return; } + TORRENT_ASSERT(has_picker()); + for (int i = 0; i < m_torrent_file->num_files(); ++i) { peer_request ret = m_torrent_file->files().map_file(i, 0, 0);