From 8b64f44e2ee22e2254edfc42ca121685057c1a86 Mon Sep 17 00:00:00 2001 From: kaldoran <kaldoran@live.fr> Date: Thu, 18 Feb 2016 16:47:01 +0000 Subject: [PATCH] Correction of prefix, sometime some bit remain at they default value --- 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 2e3f15ef..2e687cba 100644 --- a/include/opendht/indexation/pht.h +++ b/include/opendht/indexation/pht.h @@ -36,7 +36,7 @@ struct Prefix { { auto rem = size_ % 8; if (rem) - content_.push_back(p.content_[size_/8] & (0xFF << (7 - rem))); + content_.push_back(p.content_[size_/8] & (0xFF << (8 - rem))); } Prefix getPrefix(ssize_t len) const { -- GitLab