fix assert in torrent_info
This commit is contained in:
@@ -1274,10 +1274,12 @@ namespace libtorrent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TORRENT_ASSERT(m_piece_hashes);
|
if (m_piece_hashes != 0)
|
||||||
|
{
|
||||||
TORRENT_ASSERT(m_piece_hashes >= m_info_section.get());
|
TORRENT_ASSERT(m_piece_hashes >= m_info_section.get());
|
||||||
TORRENT_ASSERT(m_piece_hashes < m_info_section.get() + m_info_section_size);
|
TORRENT_ASSERT(m_piece_hashes < m_info_section.get() + m_info_section_size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user