mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Minor fix for mobile: Explicitly cast length to uint64 so it works on stupid systems (32-bit) as well
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user