From 81b1ba1f2042c27e450565ccaa83fde1953997f1 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Wed, 23 Jun 2021 19:06:59 +0200 Subject: [PATCH] fix(sdk): Avoid narrowing conversion --- fairmq/sdk/DDSTopology.cxx | 2 +- fairmq/sdk/DDSTopology.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fairmq/sdk/DDSTopology.cxx b/fairmq/sdk/DDSTopology.cxx index 07389717..d4487174 100644 --- a/fairmq/sdk/DDSTopology.cxx +++ b/fairmq/sdk/DDSTopology.cxx @@ -59,7 +59,7 @@ auto DDSTopology::GetTopoFile() const -> Path return file; } -auto DDSTopology::GetNumRequiredAgents() const -> int +auto DDSTopology::GetNumRequiredAgents() const -> std::size_t { return fImpl->fTopo.getRequiredNofAgents(); } diff --git a/fairmq/sdk/DDSTopology.h b/fairmq/sdk/DDSTopology.h index e4166d22..9a6a0597 100644 --- a/fairmq/sdk/DDSTopology.h +++ b/fairmq/sdk/DDSTopology.h @@ -50,7 +50,7 @@ class DDSTopology auto GetTopoFile() const -> Path; /// @brief Get number of required agents for this topology - auto GetNumRequiredAgents() const -> int; + auto GetNumRequiredAgents() const -> std::size_t; /// @brief Get list of tasks in this topology, optionally matching provided path auto GetTasks(const std::string& = "") const -> std::vector;