From 8ba04d5a852ea9a85e974f6717b1ffd9b7ab0b3e Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Thu, 21 Nov 2024 13:03:31 +0100 Subject: [PATCH] Fix uncontrolled cast of size_t to uint Signed-off-by: Jose Luis Rivero Signed-off-by: Jose Luis Rivero --- src/SimulationRunner.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SimulationRunner.cc b/src/SimulationRunner.cc index 07255523b8..5cd5db461d 100644 --- a/src/SimulationRunner.cc +++ b/src/SimulationRunner.cc @@ -495,7 +495,8 @@ void SimulationRunner::ProcessSystemQueue() this->systemMgr->ActivatePendingSystems(); - auto threadCount = this->systemMgr->SystemsPostUpdate().size() + 1u; + unsigned int threadCount = static_cast( + this->systemMgr->SystemsPostUpdate().size() + 1u); igndbg << "Creating PostUpdate worker threads: " << threadCount << std::endl;