From d0f52a812c32bd8227179322947e880a9a966a11 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 6 Jun 2026 21:05:18 +0000 Subject: Various fixes and QoL things --- object/parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object/parse.go') diff --git a/object/parse.go b/object/parse.go index cbea09ef..9a7b9068 100644 --- a/object/parse.go +++ b/object/parse.go @@ -15,7 +15,7 @@ import ( // and the size of the object. type SizeMismatchError struct { Expected uint64 - Got int + Got uint64 } func (sizeMismatchError SizeMismatchError) Error() string { @@ -37,7 +37,7 @@ func ParseWithHeader(raw []byte, objectFormat id.ObjectFormat) (Object, error) { body := raw[headerLen:] if uint64(len(body)) != size { - return nil, SizeMismatchError{Expected: size, Got: len(body)} + return nil, SizeMismatchError{Expected: size, Got: uint64(len(body))} } return ParseWithoutHeader(ty, body, objectFormat) -- cgit v1.3.1-10-gc9f91