From 8409b55018becb0bf928a848a6631de8f9c04747 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 10 Oct 2013 23:46:45 +0200 Subject: [PATCH] More Win64 build fixes. --- components/cluster/clusterlistener.cpp | 2 +- lib/db_ido/dbconnection.cpp | 8 ++++---- lib/db_ido/servicedbobject.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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; -- 2.40.0