Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Moore <jamesmoore@loopholelabs.io>
  • Loading branch information
jimmyaxod committed Nov 18, 2024
1 parent 662e5b9 commit d004406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/util/bitfield.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ func (bf *Bitfield) Equals(bf2 *Bitfield) bool {

// Create a mask of bits at the start of this range
func maskStart(start, end uint) (mask uint64) {
const max = ^uint64(0)
return ((max << (start & 63)) ^ (max << (end - start&^63))) & ((1 >> (start & 63)) - 1)
const maxUint64 = ^uint64(0)
return ((maxUint64 << (start & 63)) ^ (maxUint64 << (end - start&^63))) & ((1 >> (start & 63)) - 1)
}

// Create a mask of bits at the end of this range
Expand Down

0 comments on commit d004406

Please sign in to comment.