Fix for missing math.MaxInt in go 1.16

This commit is contained in:
Thomas Roehl 2022-01-30 15:16:46 +01:00
parent 70ebd2f36d
commit df31df149b

View File

@ -53,7 +53,7 @@ func minfunc(args ...interface{}) (interface{}, error) {
} }
return s, nil return s, nil
case []int: case []int:
var s int = math.MaxInt var s int = int(math.MaxInt32)
for _, x := range values { for _, x := range values {
if x < s { if x < s {
s = x s = x