From bc6637361acf2710051d8d048a27daf82c55ad3e Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 10 Sep 2024 20:54:15 +0200 Subject: [PATCH] Cast to size_t --- test/src/MarlinMCRecoLinkChecker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/MarlinMCRecoLinkChecker.cc b/test/src/MarlinMCRecoLinkChecker.cc index a3a93069..1c82b20f 100644 --- a/test/src/MarlinMCRecoLinkChecker.cc +++ b/test/src/MarlinMCRecoLinkChecker.cc @@ -63,7 +63,7 @@ void MarlinMCRecoLinkChecker::processEvent(LCEvent* evt) { std::to_string(relColl->getNumberOfElements()) + ")"); } - for (size_t i = 0; i < mcColl->getNumberOfElements(); ++i) { + for (size_t i = 0; i < static_cast(mcColl->getNumberOfElements()); ++i) { const auto mc = static_cast(mcColl->getElementAt(i)); const auto reco = static_cast(recoColl->getElementAt(i)); const auto rel = static_cast(relColl->getElementAt(i));