We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b51b9b commit 13642a5Copy full SHA for 13642a5
src/netbase.cpp
@@ -980,7 +980,7 @@ std::vector<unsigned char> CNetAddr::GetGroup() const
980
nBits -= 8;
981
}
982
if (nBits > 0)
983
- vchRet.push_back(GetByte(15 - nStartByte) | ((1 << nBits) - 1));
+ vchRet.push_back(GetByte(15 - nStartByte) | ((1 << (8 - nBits)) - 1));
984
985
return vchRet;
986
0 commit comments