diff options
| author | 2026-03-05 21:22:08 +0800 | |
|---|---|---|
| committer | 2026-03-05 21:22:08 +0800 | |
| commit | 2278d9d296aa7ec37f0c648df1461e4ec77e219a (patch) | |
| tree | 915ceb8cbb8e3cef118463073d434a3582a63952 /format/pack/ingest/thin_fix.go | |
| parent | format/pack/ingest: Fix exhaustive (diff) | |
| signature | No signature | |
*: Fix wsl_v5 again
Diffstat (limited to 'format/pack/ingest/thin_fix.go')
| -rw-r--r-- | format/pack/ingest/thin_fix.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/format/pack/ingest/thin_fix.go b/format/pack/ingest/thin_fix.go index 6ac3c75a..5883ac23 100644 --- a/format/pack/ingest/thin_fix.go +++ b/format/pack/ingest/thin_fix.go @@ -187,6 +187,7 @@ func (writer *countingWriter) Write(src []byte) (int, error) { // rewritePackHeaderAndTrailer rewrites object count and trailer hash using ReadAt/WriteAt. func rewritePackHeaderAndTrailer(state *ingestState) error { var countRaw [4]byte + recordCountUint32, err := intconv.IntToUint32(len(state.records)) if err != nil { return err @@ -252,6 +253,7 @@ func rewritePackHeaderAndTrailer(state *ingestState) error { state.objectCountHeader = recordCountUint32 sumLenInt64 := int64(len(sum)) + newConsumed, err := intconv.Int64ToUint64(endWithoutTrailer + sumLenInt64) if err != nil { return err @@ -267,6 +269,7 @@ func encodePackEntryHeader(ty objecttype.Type, size int64) []byte { var out [16]byte n := 0 + s, err := intconv.Int64ToUint64(size) if err != nil { panic(err) |
