From abfb2de99ba2a9a41762d5dcf9cebd0f6750a2a1 Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio <35803280+lobis@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:55:06 +0100 Subject: [PATCH] Update TRestDetectorDaqChannelSwitchingProcess.cxx --- src/TRestDetectorDaqChannelSwitchingProcess.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TRestDetectorDaqChannelSwitchingProcess.cxx b/src/TRestDetectorDaqChannelSwitchingProcess.cxx index b2a2a998..472f6729 100644 --- a/src/TRestDetectorDaqChannelSwitchingProcess.cxx +++ b/src/TRestDetectorDaqChannelSwitchingProcess.cxx @@ -45,7 +45,7 @@ void TRestDetectorDaqChannelSwitchingProcess::InitProcess() { auto mod = fReadout->GetReadoutModuleWithID(iter->first); if (mod == nullptr) continue; // finding out the old "firstdaqchannel" value - int mindaq = std::numeric_limits::max(); + int mindaq = std::numeric_limits::int(); for (size_t i = 0; i < mod->GetNumberOfChannels(); i++) { if (mod->GetChannel(i)->GetDaqID() < mindaq) { mindaq = mod->GetChannel(i)->GetDaqID();