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 25, 2024
1 parent 94e4144 commit 99453ef
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 99453ef

Please sign in to comment.