From 32b8a77ba7a09f46db0f6f1c7d88dec7cbcbeeb9 Mon Sep 17 00:00:00 2001 From: Russell Hancox Date: Mon, 12 Aug 2024 15:05:17 -0400 Subject: [PATCH] Cast rules_* values --- Source/santasyncservice/SNTSyncPostflight.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/santasyncservice/SNTSyncPostflight.mm b/Source/santasyncservice/SNTSyncPostflight.mm index 93a4730c1..2779358dc 100644 --- a/Source/santasyncservice/SNTSyncPostflight.mm +++ b/Source/santasyncservice/SNTSyncPostflight.mm @@ -38,8 +38,8 @@ - (BOOL)sync { google::protobuf::Arena arena; auto req = google::protobuf::Arena::Create<::pbv1::PostflightRequest>(&arena); req->set_machine_id(NSStringToUTF8String(self.syncState.machineID)); - req->set_rules_received(self.syncState.rulesReceived); - req->set_rules_processed(self.syncState.rulesProcessed); + req->set_rules_received(static_cast(self.syncState.rulesReceived)); + req->set_rules_processed(static_cast(self.syncState.rulesProcessed)); ::pbv1::PostflightResponse response; [self performRequest:[self requestWithMessage:req] intoMessage:&response timeout:30];