aboutsummaryrefslogtreecommitdiff
path: root/object/parse.go
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/parse.go
parentTODO: Update (diff)
Unify lengths
Diffstat (limited to 'object/parse.go')
-rw-r--r--object/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/parse.go b/object/parse.go
index afcdfe28..f9779171 100644
--- a/object/parse.go
+++ b/object/parse.go
@@ -29,7 +29,7 @@ func ParseWithHeader(raw []byte, objectFormat id.ObjectFormat) (Object, error) {
}
body := raw[headerLen:]
- if uint64(len(body)) != size {
+ if len(body) != size {
return nil, fmt.Errorf("%w: header declares %d bytes, body has %d", ErrSizeMismatch, size, len(body))
}