From 0dc7d2722e6934fdd5889e78714eac3b77134be5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <rostydela@gmail.com>
Date: Thu, 3 Mar 2016 14:45:49 -0500
Subject: [PATCH] Revert "[Bug] Correction of function commonBits"

---
 include/opendht/indexation/pht.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opendht/indexation/pht.h b/include/opendht/indexation/pht.h
index 4e1d667a..2e687cba 100644
--- a/include/opendht/indexation/pht.h
+++ b/include/opendht/indexation/pht.h
@@ -87,7 +87,7 @@ struct Prefix {
         auto longest_prefix_size = std::min(p1.size_, p2.size_);
 
         for (i = 0; i < longest_prefix_size; i++) {
-            if (p1.content_.data()[i] != p2.content_.data()[i] || i == longest_prefix_size)
+            if (p1.content_.data()[i] != p2.content_.data()[i])
                 break;
         }
 
-- 
GitLab