Skip to content

Commit

Permalink
reader.go: fix vet error for 32-bit architectures such as GOARCH=386
Browse files Browse the repository at this point in the history
  • Loading branch information
valyala committed Jan 15, 2024
1 parent 3efe410 commit 52d3ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (fc *FieldContext) NextField(src []byte) ([]byte, error) {
src = src[offset:]
fieldNum = tag >> 3
if fieldNum > math.MaxUint32 {
return src, fmt.Errorf("fieldNum=%d is bigger than uint32max=%d", fieldNum, math.MaxUint32)
return src, fmt.Errorf("fieldNum=%d is bigger than uint32max=%d", fieldNum, uint64(math.MaxUint32))
}
}

Expand Down

0 comments on commit 52d3ac4

Please sign in to comment.