From 553ed73917a06a4eaeae55693cdb866d7d2fc8b2 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Mon, 3 May 2021 16:58:07 +0200 Subject: [PATCH] Fix lint warning Signed-off-by: beorn7 --- prometheus/histogram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/histogram.go b/prometheus/histogram.go index 63a3d3b..36cf415 100644 --- a/prometheus/histogram.go +++ b/prometheus/histogram.go @@ -480,7 +480,7 @@ func makeSparseBuckets(buckets *sync.Map) *dto.SparseBuckets { count := atomic.LoadUint64(v.(*uint64)) if n == 0 || i-nextI != 0 { sbs.Span = append(sbs.Span, &dto.SparseBuckets_Span{ - Offset: proto.Int(i - nextI), + Offset: proto.Int32(int32(i - nextI)), Length: proto.Uint32(1), }) } else {