Fix peerExtensionBytes.SetBit

This commit is contained in:
Matt Joiner 2018-02-03 13:29:48 +11:00
parent e67b85215c
commit 9f2a7ec3e4
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func (pex peerExtensionBytes) SupportsFast() bool {
}
func (pex *peerExtensionBytes) SetBit(bit ExtensionBit) {
pex[7-bit/8] |= 1 << bit % 8
pex[7-bit/8] |= 1 << (bit % 8)
}
func (pex peerExtensionBytes) GetBit(bit ExtensionBit) bool {