Skip to content

Commit

Permalink
Merge pull request #2886 from blowekamp/FixStatisticsLabelMapWarning
Browse files Browse the repository at this point in the history
COMP: Fix sign comparison to unsigned warning
  • Loading branch information
blowekamp authored Nov 22, 2021
2 parents 845e661 + b624631 commit fa9f628
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ StatisticsLabelMapFilter<TImage, TFeatureImage>::ThreadedProcessLabelObject(Labe

constexpr size_t bitsShift = std::min(8 * sizeof(FeatureImagePixelType), 8 * sizeof(m_NumberOfBins) - 1);
if (std::is_integral<FeatureImagePixelType>::value && sizeof(FeatureImagePixelType) <= 2 &&
m_NumberOfBins == 1 << bitsShift)
m_NumberOfBins == 1u << bitsShift)
{
// Add padding so the center of bins are integers
featureImageMin.Fill(NumericTraits<typename Self::FeatureImagePixelType>::min() - 0.5);
Expand Down

0 comments on commit fa9f628

Please sign in to comment.