aboutsummaryrefslogtreecommitdiff
path: root/packed_read_pack.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-01-29 20:33:59 +0100
committerGravatar Runxi Yu2026-01-29 20:33:59 +0100
commitdaca6d0eb76a7fc8134de35ddb7a4a1d0e184e0c (patch)
tree681238fcf1f003e193851528992167c3bb97c92d /packed_read_pack.go
parentpacked: Fix message for thin packs not implemented (diff)
signatureNo signature
zlibx: Make DecompressSized return the number of bytes consumed
Diffstat (limited to 'packed_read_pack.go')
-rw-r--r--packed_read_pack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packed_read_pack.go b/packed_read_pack.go
index 593fe97f..31279c8f 100644
--- a/packed_read_pack.go
+++ b/packed_read_pack.go
@@ -97,7 +97,7 @@ func packSectionInflate(pf *packFile, start uint64, sizeHint int) (bufpool.Buffe
if start > uint64(len(pf.data)) {
return bufpool.Buffer{}, ErrInvalidObject
}
- body, err := zlibx.DecompressSized(pf.data[start:], sizeHint)
+ body, _, err := zlibx.DecompressSized(pf.data[start:], sizeHint)
if err != nil {
return bufpool.Buffer{}, err
}