aboutsummaryrefslogtreecommitdiff
path: root/object/parse.go
diff options
context:
space:
mode:
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))
}