mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: fix 32-bit builds for GOARH=386 or GOARCH=arm
This commit is contained in:
parent
0b0259c42c
commit
ef416c72c2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue