fix assert in torrent_info

This commit is contained in:
Arvid Norberg 2011-06-25 17:24:26 +00:00
parent 2548db5737
commit 69bbee8932
1 changed files with 5 additions and 3 deletions

View File

@ -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
} }