diff --git a/Detectors/Raw/TFReaderDD/src/TFReaderSpec.cxx b/Detectors/Raw/TFReaderDD/src/TFReaderSpec.cxx index 58a2a775537d4..ef59d94b26048 100644 --- a/Detectors/Raw/TFReaderDD/src/TFReaderSpec.cxx +++ b/Detectors/Raw/TFReaderDD/src/TFReaderSpec.cxx @@ -431,7 +431,7 @@ void TFReaderSpec::TFBuilder() } else { break; } - if (mInput.maxTFsPerFile > 0 && mInput.maxTFsPerFile >= locID) { // go to next file + if (mInput.maxTFsPerFile > 0 && locID >= mInput.maxTFsPerFile) { // go to next file break; } }