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;