diff --git a/components/cluster/clusterlistener.cpp b/components/cluster/clusterlistener.cpp index 1a85d899a..fb6af6117 100644 --- a/components/cluster/clusterlistener.cpp +++ b/components/cluster/clusterlistener.cpp @@ -575,7 +575,7 @@ void ClusterListener::NewClientHandler(const Socket::Ptr& client, TlsRole role) } } - Log(LogInformation, "cluster", "Sending " + Convert::ToString(config->GetLength()) + " config files to endpoint '" + endpoint->GetName() + "'."); + Log(LogInformation, "cluster", "Sending " + Convert::ToString(static_cast(config->GetLength())) + " config files to endpoint '" + endpoint->GetName() + "'."); Dictionary::Ptr params = boost::make_shared(); params->Set("identity", GetIdentity()); diff --git a/lib/db_ido/dbconnection.cpp b/lib/db_ido/dbconnection.cpp index a87b2077c..7345a993b 100644 --- a/lib/db_ido/dbconnection.cpp +++ b/lib/db_ido/dbconnection.cpp @@ -112,10 +112,10 @@ void DbConnection::ProgramStatusHandler(void) query3.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */ DbObject::OnQuery(query3); - InsertRuntimeVariable("total_services", DynamicType::GetObjects().size()); - InsertRuntimeVariable("total_scheduled_services", DynamicType::GetObjects().size()); - InsertRuntimeVariable("total_hosts", DynamicType::GetObjects().size()); - InsertRuntimeVariable("total_scheduled_hosts", DynamicType::GetObjects().size()); + InsertRuntimeVariable("total_services", static_cast(DynamicType::GetObjects().size())); + InsertRuntimeVariable("total_scheduled_services", static_cast(DynamicType::GetObjects().size())); + InsertRuntimeVariable("total_hosts", static_cast(DynamicType::GetObjects().size())); + InsertRuntimeVariable("total_scheduled_hosts", static_cast(DynamicType::GetObjects().size())); } void DbConnection::CleanUpHandler(void) diff --git a/lib/db_ido/servicedbobject.cpp b/lib/db_ido/servicedbobject.cpp index 391925c2e..d62c23ead 100644 --- a/lib/db_ido/servicedbobject.cpp +++ b/lib/db_ido/servicedbobject.cpp @@ -885,7 +885,7 @@ void ServiceDbObject::AddNotificationHistory(const Service::Ptr& service, const } fields1->Set("escalated", 0); - fields1->Set("contacts_notified", users.size()); + fields1->Set("contacts_notified", static_cast(users.size())); fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */ query1.Fields = fields1;