diff options
| author | 2026-06-11 13:50:28 +0000 | |
|---|---|---|
| committer | 2026-06-11 13:50:28 +0000 | |
| commit | 3c5bf9fef759d3e736df57f78ed70ccd83de2b51 (patch) | |
| tree | 15d402dd5169e91c5204eaad5331a39ef2e01394 /internal/format/packidx/lookup.go | |
| parent | internal/format/packidx: Add basic writing support (diff) | |
internal/format/packidx: Fix lints
Diffstat (limited to 'internal/format/packidx/lookup.go')
| -rw-r--r-- | internal/format/packidx/lookup.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
