Skip to content

Commit 00e2fad

Browse files
committed
COMP: Fix type comparison mismatch
Make the for loop variables match the comparison variable type.
1 parent c84d33b commit 00e2fad

File tree

1 file changed

+2
-2
lines changed
  • src/Core/Common/GenerateOffsetsShapedImageNeighborhood

1 file changed

+2
-2
lines changed

src/Core/Common/GenerateOffsetsShapedImageNeighborhood/Code.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ PrintImageNeighborhoodShape(const TOffsets & offsets)
6565
const itk::ImageBufferRange<const ImageType> imageBufferRange(*image);
6666
auto imageBufferIterator = imageBufferRange.cbegin();
6767

68-
for (int y{ 0 }; y < imageSize; ++y)
68+
for (unsigned int y{ 0 }; y < imageSize; ++y)
6969
{
7070
std::cout << " ";
7171

72-
for (int x{ 0 }; x < imageSize; ++x)
72+
for (unsigned int x{ 0 }; x < imageSize; ++x)
7373
{
7474
std::cout << *imageBufferIterator << ' ';
7575
++imageBufferIterator;

0 commit comments

Comments
 (0)