From ef416c72c2a5a0ca6d624e124cef76cc6ccb7139 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 29 Sep 2020 12:40:35 +0300 Subject: [PATCH] lib/storage: fix 32-bit builds for GOARH=386 or GOARCH=arm --- lib/storage/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/block.go b/lib/storage/block.go index 3116776740..ec0b3fdeb9 100644 --- a/lib/storage/block.go +++ b/lib/storage/block.go @@ -348,7 +348,7 @@ func (b *Block) UnmarshalPortable(src []byte) ([]byte, error) { return src, fmt.Errorf("cannot unmarshal rowsCount: %w", err) } if rowsCount > math.MaxUint32 { - return src, fmt.Errorf("got too big rowsCount=%d; it mustn't exceed %d", rowsCount, math.MaxUint32) + return src, fmt.Errorf("got too big rowsCount=%d; it mustn't exceed %d", rowsCount, uint32(math.MaxUint32)) } b.bh.RowsCount = uint32(rowsCount) src, scale, err := encoding.UnmarshalVarInt64(src)