From 5db25f27041eb85201975ef1721934ebbaf6b482 Mon Sep 17 00:00:00 2001 From: Kleissner Date: Sat, 11 Dec 2021 18:46:43 +0100 Subject: [PATCH] Minor fix for mobile: Explicitly cast length to uint64 so it works on stupid systems (32-bit) as well --- blockchain/Block Record Profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/Block Record Profile.go b/blockchain/Block Record Profile.go index 260e200..ecac278 100644 --- a/blockchain/Block Record Profile.go +++ b/blockchain/Block Record Profile.go @@ -55,7 +55,7 @@ func encodeBlockRecordProfile(fields []BlockRecordProfile) (recordsRaw []BlockRe } for n := range fields { - if len(fields[n].Data) > math.MaxUint32 { + if uint64(len(fields[n].Data)) > math.MaxUint32 { return nil, errors.New("exceeding max field size") }