Skip to content

Commit

Permalink
Fix uncontrolled cast of size_t to uint
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Nov 25, 2024
1 parent a7ea4ac commit 8ba04d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SimulationRunner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ void SimulationRunner::ProcessSystemQueue()

this->systemMgr->ActivatePendingSystems();

auto threadCount = this->systemMgr->SystemsPostUpdate().size() + 1u;
unsigned int threadCount = static_cast<unsigned int>(
this->systemMgr->SystemsPostUpdate().size() + 1u);

igndbg << "Creating PostUpdate worker threads: "
<< threadCount << std::endl;
Expand Down

0 comments on commit 8ba04d5

Please sign in to comment.