From 594efbcbbb64dde92ce8d5b06c4877b98f125f23 Mon Sep 17 00:00:00 2001 From: Hans Moog <hm@mkjc.net> Date: Wed, 4 Mar 2020 00:20:29 +0100 Subject: [PATCH] Fix: fixed wrong variables in Parse of marshalUtil --- packages/binary/marshalutil/marshalutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binary/marshalutil/marshalutil.go b/packages/binary/marshalutil/marshalutil.go index 3e96aeff..8d167082 100644 --- a/packages/binary/marshalutil/marshalutil.go +++ b/packages/binary/marshalutil/marshalutil.go @@ -38,7 +38,7 @@ func New(args ...interface{}) *MarshalUtil { } } -func (util *MarshalUtil) Parse(parser func(data []byte) (result interface{}, err error, consumedBytes int)) (result interface{}, err error) { +func (util *MarshalUtil) Parse(parser func(data []byte) (interface{}, error, int)) (result interface{}, err error) { result, err, readBytes := parser(util.bytes[util.readOffset:]) if err != nil { util.ReadSeek(util.readOffset + readBytes) -- GitLab