From 846d575a520e20dcee4eadf36588e6eea364d849 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 24 Apr 2008 09:36:37 +0000 Subject: [PATCH] Fix typo in policy.cpp --- libtorrent/src/policy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtorrent/src/policy.cpp b/libtorrent/src/policy.cpp index 76d21cc3c..61428521c 100755 --- a/libtorrent/src/policy.cpp +++ b/libtorrent/src/policy.cpp @@ -1348,8 +1348,8 @@ namespace libtorrent { std::pair* lhs_as = lhs.inet_as; std::pair* rhs_as = rhs.inet_as; - if (lhs_as ? lhs_as->second : 0 > rhs_as ? rhs->second : 0) return true; - if (lhs_as ? lhs_as->second : 0 < rhs_as ? rhs->second : 0) return false; + if (lhs_as ? lhs_as->second : 0 > rhs_as ? rhs_as->second : 0) return true; + if (lhs_as ? lhs_as->second : 0 < rhs_as ? rhs_as->second : 0) return false; } #endif int lhs_distance = cidr_distance(external_ip, lhs.ip.address());