From d0fc5fee2bbdbd60c1f8fd695e9457ac320d38c6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 18 Oct 2008 22:29:56 +0000 Subject: [PATCH] fixed assert in piece_picker --- src/piece_picker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/piece_picker.cpp b/src/piece_picker.cpp index a16be1218..6321413ad 100644 --- a/src/piece_picker.cpp +++ b/src/piece_picker.cpp @@ -1129,7 +1129,7 @@ namespace libtorrent if (new_piece_priority == int(p.piece_priority)) return false; int prev_priority = p.priority(this); - TORRENT_ASSERT(m_dirty | prev_priority < int(m_priority_boundries.size())); + TORRENT_ASSERT(m_dirty || prev_priority < int(m_priority_boundries.size())); bool ret = false; if (new_piece_priority == piece_pos::filter_priority