From ca679561e5bccfd97c14dfa3f93fc1522d1904bd Mon Sep 17 00:00:00 2001 From: Luke Heath Date: Wed, 22 Apr 2026 11:57:03 -0500 Subject: [PATCH] Potential fix for code scanning alert no. 1537: Incorrect conversion between integer types (#43918) --- server/cron/calendar_cron.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cron/calendar_cron.go b/server/cron/calendar_cron.go index de4eed1869..4c6b0a6cc4 100644 --- a/server/cron/calendar_cron.go +++ b/server/cron/calendar_cron.go @@ -514,7 +514,7 @@ func getBodyTag(ctx context.Context, ds fleet.Datastore, host fleet.HostPolicyMe var policy *calendar.PolicyLiteWithMeta policyAny, ok := policyIDtoPolicy.Load(policyIDs[0]) if !ok { - id, err := strconv.ParseUint(policyIDs[0], 10, 64) + id, err := strconv.ParseUint(policyIDs[0], 10, strconv.IntSize) if err != nil { logger.ErrorContext(ctx, "parse policy id", "err", err) // Do nothing