diff --git a/include/libtorrent/kademlia/routing_table.hpp b/include/libtorrent/kademlia/routing_table.hpp index 3c4376a2a..b2489cae9 100644 --- a/include/libtorrent/kademlia/routing_table.hpp +++ b/include/libtorrent/kademlia/routing_table.hpp @@ -117,8 +117,8 @@ namespace aux bool equal(routing_table_iterator const& other) const { return m_bucket_iterator == other.m_bucket_iterator - && (m_iterator == other.m_iterator - || m_bucket_iterator == m_bucket_end); + && (m_bucket_iterator == m_bucket_end + || m_iterator == other.m_iterator); } void increment()