From 603a466cc6a485a461d743ffef015e02a7e9ab53 Mon Sep 17 00:00:00 2001 From: Matthew Bowles <matthew.bowles@stfc.ac.uk> Date: Thu, 14 Jun 2018 09:18:42 +0100 Subject: [PATCH] fix warning about signed and unsigned int comparison re #22533 --- qt/scientific_interfaces/Indirect/ISISEnergyTransfer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/scientific_interfaces/Indirect/ISISEnergyTransfer.cpp b/qt/scientific_interfaces/Indirect/ISISEnergyTransfer.cpp index 007cd9dd199..057e230faa8 100644 --- a/qt/scientific_interfaces/Indirect/ISISEnergyTransfer.cpp +++ b/qt/scientific_interfaces/Indirect/ISISEnergyTransfer.cpp @@ -467,10 +467,10 @@ ISISEnergyTransfer::createMapFile(const std::string &groupType) { const std::string ISISEnergyTransfer::createDetectorGroupingString() { - const int nGroups = m_uiForm.spNumberGroups->value(); - const int nSpectra = + const unsigned int nGroups = m_uiForm.spNumberGroups->value(); + const unsigned int nSpectra = m_uiForm.spSpectraMax->value() - m_uiForm.spSpectraMin->value(); - const int groupSize = nSpectra / nGroups; + const unsigned int groupSize = nSpectra / nGroups; auto n = groupSize; std::stringstream groupingString; groupingString << "0-" << std::to_string(n); -- GitLab