Skip to content

Commit 06c4340

Browse files
cyriltovenagouthamve
authored andcommitted
Fixes ARM build with const overflow. (#1822)
see grpc/grpc-go#1471 Signed-off-by: Cyril Tovena <[email protected]>
1 parent 196c78a commit 06c4340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ring/kv/memberlist/memberlist_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ func (m *Client) LocalState(join bool) []byte {
616616
level.Error(util.Logger).Log("msg", "key too long", "key", key)
617617
continue
618618
}
619-
if len(val.value) > math.MaxUint32 {
619+
if uint(len(val.value)) > math.MaxUint32 {
620620
level.Error(util.Logger).Log("msg", "value too long", "key", key, "value_length", len(val.value))
621621
continue
622622
}

0 commit comments

Comments
 (0)