mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Fix masking of irrelevant bits in address groups.
This commit is contained in:
parent
6b51b9b195
commit
13642a50eb
1 changed files with 1 additions and 1 deletions
|
|
@ -980,7 +980,7 @@ std::vector<unsigned char> CNetAddr::GetGroup() const
|
|||
nBits -= 8;
|
||||
}
|
||||
if (nBits > 0)
|
||||
vchRet.push_back(GetByte(15 - nStartByte) | ((1 << nBits) - 1));
|
||||
vchRet.push_back(GetByte(15 - nStartByte) | ((1 << (8 - nBits)) - 1));
|
||||
|
||||
return vchRet;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue