fixed warning

This commit is contained in:
Arvid Norberg 2007-05-14 03:50:19 +00:00
parent a5b664657e
commit dcad9b3031
2 changed files with 3 additions and 2 deletions

View File

@ -84,7 +84,8 @@ size_type routing_table::num_global_nodes() const
{
int first_full = m_lowest_active_bucket;
int num_nodes = 1; // we are one of the nodes
for (; first_full < 160 && m_buckets[first_full].first.size() < m_bucket_size;
for (; first_full < 160
&& int(m_buckets[first_full].first.size()) < m_bucket_size;
++first_full)
{
num_nodes += m_buckets[first_full].first.size();

View File

@ -872,7 +872,7 @@ namespace libtorrent { namespace detail
<< downloading_torrents << "\t"
<< seeding_torrents << "\t"
<< m_connections.size() << "\t"
"\n";
std::endl;
#endif