Skip to content

Commit

Permalink
rename mask -> bitIndex
Browse files Browse the repository at this point in the history
Co-authored-by: AnomalRoil <[email protected]>
  • Loading branch information
Stebalien and AnomalRoil authored Aug 13, 2024
1 parent 4bf5c5d commit 6e99a9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sign/mask.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ func (m *Mask) GetBit(i int) (bool, error) {
}

byteIndex := i / 8
mask := byte(1) << uint(i&7)
return m.mask[byteIndex]&mask != 0, nil
bitIndex := byte(1) << uint(i&7)
return m.mask[byteIndex]&bitIndex != 0, nil
}

// SetBit turns on or off the bit at the given index.
Expand Down

0 comments on commit 6e99a9f

Please sign in to comment.