aboutsummaryrefslogtreecommitdiff
path: root/object/blob
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-13 03:32:21 +0000
committerGravatar Runxi Yu2026-06-13 04:59:51 +0000
commitbe63ecd9711b46135bbff1769c2e4c3642255ef1 (patch)
treed5581c8b2e438af2b8ae82dd8f200393b2dbc5d3 /object/blob
parentTODO: Update (diff)
Unify lengths
Diffstat (limited to 'object/blob')
-rw-r--r--object/blob/append.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/blob/append.go b/object/blob/append.go
index 2376d65f..8106f1c5 100644
--- a/object/blob/append.go
+++ b/object/blob/append.go
@@ -12,7 +12,7 @@ func (blob *Blob) AppendWithoutHeader(dst []byte) ([]byte, error) {
// AppendWithHeader renders the raw object (header + body).
func (blob *Blob) AppendWithHeader(dst []byte) ([]byte, error) {
- dst = header.Append(dst, typ.Blob, uint64(len(blob.Data)))
+ dst = header.Append(dst, typ.Blob, len(blob.Data))
return blob.AppendWithoutHeader(dst)
}