diff --git a/include/opendht/indexation/pht.h b/include/opendht/indexation/pht.h index 2e3f15efe0e7825de0694319143d4a261ddcf012..2e687cbac6daa6181fde53f7ae41c8aee101fd13 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 {