Minor fix for mobile: Explicitly cast length to uint64 so it works on stupid systems (32-bit) as well

This commit is contained in:
Kleissner
2021-12-11 18:46:43 +01:00
parent c8e0d1cfbe
commit 5db25f2704

View File

@@ -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")
}