fixed overflow in assert

This commit is contained in:
Arvid Norberg 2011-12-30 21:32:27 +00:00
parent 152cee19f1
commit 2967468a8b
1 changed files with 1 additions and 1 deletions

View File

@ -2852,7 +2852,7 @@ ctx->set_verify_callback(verify_function, ec);
if (!valid_metadata() || m_torrent_file->num_pieces() == 0)
return;
TORRENT_ASSERT(st.total_wanted >= m_torrent_file->piece_length()
TORRENT_ASSERT(st.total_wanted >= size_type(m_torrent_file->piece_length())
* (m_torrent_file->num_pieces() - 1));
const int last_piece = m_torrent_file->num_pieces() - 1;