From daca6d0eb76a7fc8134de35ddb7a4a1d0e184e0c Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 29 Jan 2026 20:33:59 +0100 Subject: zlibx: Make DecompressSized return the number of bytes consumed --- packed_read_pack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packed_read_pack.go') 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 } -- cgit v1.3.1-10-gc9f91