From d004406e6021347e477fcf5038cc619de721451f Mon Sep 17 00:00:00 2001 From: Jimmy Moore Date: Mon, 18 Nov 2024 13:04:17 +0000 Subject: [PATCH] lint Signed-off-by: Jimmy Moore --- pkg/storage/util/bitfield.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/util/bitfield.go b/pkg/storage/util/bitfield.go index d38b3cbf..16c53e9f 100644 --- a/pkg/storage/util/bitfield.go +++ b/pkg/storage/util/bitfield.go @@ -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