From 0bad3bcc483468ad3255356524442a3cc7bafe91 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 15 Dec 2006 23:24:40 +0000 Subject: [PATCH] fixed typos --- src/torrent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index fbe6c6732..002216e3d 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -746,9 +746,9 @@ namespace libtorrent for (int j = 0; j < blocks_per_piece; ++j) { assert(i->finished_blocks[j] == 0 || i->finished_blocks[j] == 1); - assert(m_picker->is_finished(piece_block(i->index, j) == i->finished_blocks[j])); + assert(m_picker->is_finished(piece_block(i->index, j)) == i->finished_blocks[j]); corr += i->finished_blocks[j] * m_block_size; - assert(i->index != last_piece || j < m_picker-blocks_in_last_piece() + assert(i->index != last_piece || j < m_picker->blocks_in_last_piece() || i->finished_blocks[j] == 0); }