diff --git a/src/TRestDetectorHitsReadoutAnalysisProcess.cxx b/src/TRestDetectorHitsReadoutAnalysisProcess.cxx index fc0d065a..37fdb49d 100644 --- a/src/TRestDetectorHitsReadoutAnalysisProcess.cxx +++ b/src/TRestDetectorHitsReadoutAnalysisProcess.cxx @@ -15,7 +15,7 @@ TRestEvent* TRestDetectorHitsReadoutAnalysisProcess::ProcessEvent(TRestEvent* in vector hitEnergy; double energyInFiducial = 0; - for (int hitIndex = 0; hitIndex < fInputHitsEvent->GetNumberOfHits(); hitIndex++) { + for (int hitIndex = 0; hitIndex < static_cast(fInputHitsEvent->GetNumberOfHits()); hitIndex++) { const auto position = fInputHitsEvent->GetPosition(hitIndex); const auto energy = fInputHitsEvent->GetEnergy(hitIndex); const auto time = fInputHitsEvent->GetTime(hitIndex);