From 3574458b447381bbaad2faa70d90454702ffe762 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 11 Aug 2006 06:05:16 +0000 Subject: [PATCH] fixed comparison of invalid iterators --- include/libtorrent/kademlia/routing_table.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()