From df31df149b9d2139d21e35af87ad00b0c05e5c74 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Sun, 30 Jan 2022 15:16:46 +0100 Subject: [PATCH] Fix for missing math.MaxInt in go 1.16 --- internal/metricRouter/metricAggregatorFunctions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/metricRouter/metricAggregatorFunctions.go b/internal/metricRouter/metricAggregatorFunctions.go index 4133a4b..f00479d 100644 --- a/internal/metricRouter/metricAggregatorFunctions.go +++ b/internal/metricRouter/metricAggregatorFunctions.go @@ -53,7 +53,7 @@ func minfunc(args ...interface{}) (interface{}, error) { } return s, nil case []int: - var s int = math.MaxInt + var s int = int(math.MaxInt32) for _, x := range values { if x < s { s = x