txtpbfmt icon indicating copy to clipboard operation
txtpbfmt copied to clipboard

undefined: math.MaxInt

Open nhendy opened this issue 2 years ago • 1 comments

I got the error below when running go get -u github.com/protocolbuffers/txtpbfmt/cmd/txtpbfmt

github.com/protocolbuffers/txtpbfmt/parser

parser/parser.go:1346:12: undefined: math.MaxInt

nhendy avatar Sep 10 '22 17:09 nhendy

hi, sorry for the problem, this seems to be caused by the Go version, can you try changing it to MaxInt64 which already existed in earlier Go versions? If it fixes your problem I'm happy to approve your change!

kssilveira avatar Sep 14 '22 13:09 kssilveira