From 3c5bf9fef759d3e736df57f78ed70ccd83de2b51 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 11 Jun 2026 13:50:28 +0000 Subject: internal/format/packidx: Fix lints --- internal/format/packidx/lookup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/format/packidx/lookup.go') diff --git a/internal/format/packidx/lookup.go b/internal/format/packidx/lookup.go index 5135a5de..d1293f47 100644 --- a/internal/format/packidx/lookup.go +++ b/internal/format/packidx/lookup.go @@ -53,7 +53,7 @@ func (idx *Packidx) OffsetAt(pos int) (uint64, error) { } slot := raw &^ largeOffsetFlag - if slot >= idx.off64Count { + if uint64(slot) >= idx.off64Count { return 0, fmt.Errorf("%w: 64-bit offset reference out of range", ErrMalformedPackIndex) } -- cgit v1.3.1-10-gc9f91