From ab93f201fdefff23d75e766df56a57fc07edb5a4 Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Tue, 7 May 2024 10:30:10 +0200 Subject: [PATCH] warning --- src/TRestDetectorHitsReadoutAnalysisProcess.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);