fixed a whole bunch of build warnings on gcc and msvc, along with some fixes discovered along the way

This commit is contained in:
Arvid Norberg
2011-02-21 05:24:41 +00:00
parent 9fe69e7596
commit 141ada013f
73 changed files with 353 additions and 248 deletions

View File

@@ -52,11 +52,11 @@ namespace libtorrent {
void packet_buffer::check_invariant() const
{
int count = 0;
for (int i = 0; i < m_capacity; ++i)
for (int i = 0; i < int(m_capacity); ++i)
{
count += m_storage[i] ? 1 : 0;
}
TORRENT_ASSERT(count == m_size);
TORRENT_ASSERT(count == int(m_size));
}
#endif