Skip to content

Commit

Permalink
COMP: Fix type comparison mismatch
Browse files Browse the repository at this point in the history
Make the for loop variables match the comparison
variable type.
  • Loading branch information
hjmjohnson committed Nov 26, 2024
1 parent c84d33b commit 85d117f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ PrintImageNeighborhoodShape(const TOffsets & offsets)
const itk::ImageBufferRange<const ImageType> 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;
Expand Down

0 comments on commit 85d117f

Please sign in to comment.