From 99453efdd430d1108f18b8769f72eef33b677a41 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Mon, 25 Nov 2024 09:21:49 -0600 Subject: [PATCH] COMP: Fix type comparison mismatch Make the for loop variables match the comparison variable type. --- .../Common/GenerateOffsetsShapedImageNeighborhood/Code.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Common/GenerateOffsetsShapedImageNeighborhood/Code.cxx b/src/Core/Common/GenerateOffsetsShapedImageNeighborhood/Code.cxx index 4ee39aed9..ceac14235 100644 --- a/src/Core/Common/GenerateOffsetsShapedImageNeighborhood/Code.cxx +++ b/src/Core/Common/GenerateOffsetsShapedImageNeighborhood/Code.cxx @@ -65,11 +65,11 @@ PrintImageNeighborhoodShape(const TOffsets & offsets) const itk::ImageBufferRange imageBufferRange(*image); auto imageBufferIterator = imageBufferRange.cbegin(); - for (int y{ 0 }; y < imageSize; ++y) + for (unsigned int y{ 0 }; y < imageSize; ++y) { std::cout << " "; - for (int x{ 0 }; x < imageSize; ++x) + for (unsigned int x{ 0 }; x < imageSize; ++x) { std::cout << *imageBufferIterator << ' '; ++imageBufferIterator;