Skip to content

Commit

Permalink
Cast to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Sep 10, 2024
1 parent 910f701 commit bc66373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/MarlinMCRecoLinkChecker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(mcColl->getNumberOfElements()); ++i) {
const auto mc = static_cast<EVENT::MCParticle*>(mcColl->getElementAt(i));
const auto reco = static_cast<EVENT::ReconstructedParticle*>(recoColl->getElementAt(i));
const auto rel = static_cast<EVENT::LCRelation*>(relColl->getElementAt(i));
Expand Down

0 comments on commit bc66373

Please sign in to comment.