diff --git a/Framework/DataHandling/src/LoadPSIMuonBin.cpp b/Framework/DataHandling/src/LoadPSIMuonBin.cpp index 783b96595d8ff963d4621359a8fad0332c643c6c..b72df32bb7a2521c18d64c098f222c4e0c610641 100644 --- a/Framework/DataHandling/src/LoadPSIMuonBin.cpp +++ b/Framework/DataHandling/src/LoadPSIMuonBin.cpp @@ -439,9 +439,9 @@ void LoadPSIMuonBin::assignOutputWorkspaceParticulars( logAlg->executeAsChildAlg(); // first good and last good - for (auto i = 0u; + for (size_t i = 0; i < sizeof(m_header.firstGood) / sizeof(*m_header.firstGood); ++i) { - if (m_header.firstGood != 0) { + if (m_header.firstGood[i] != 0) { logAlg->setProperty("LogType", "String"); logAlg->setProperty("LogName", "Spectra" + std::to_string(i) + "first and last good");