diff --git a/src/kademlia/routing_table.cpp b/src/kademlia/routing_table.cpp index f9b484bd0..2caaa2c6a 100644 --- a/src/kademlia/routing_table.cpp +++ b/src/kademlia/routing_table.cpp @@ -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(); diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 4a72d6752..244823def 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -872,7 +872,7 @@ namespace libtorrent { namespace detail << downloading_torrents << "\t" << seeding_torrents << "\t" << m_connections.size() << "\t" - "\n"; + std::endl; #endif