From b537f2b7f67221444bb586b37087caf4cdb9a455 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Tue, 15 Sep 2020 13:23:31 -0400 Subject: [PATCH] Address signed to unsigned comparison warning --- Examples/SliceBySliceDecorator/SliceBySliceDecorator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/SliceBySliceDecorator/SliceBySliceDecorator.cxx b/Examples/SliceBySliceDecorator/SliceBySliceDecorator.cxx index f0aea90942..6cb68f4b19 100644 --- a/Examples/SliceBySliceDecorator/SliceBySliceDecorator.cxx +++ b/Examples/SliceBySliceDecorator/SliceBySliceDecorator.cxx @@ -83,7 +83,7 @@ struct SliceBySliceDecorator extract_size.begin(), extract_size.begin() + iter_dim)); - while (extract_index.back() < image.GetSize().back()) + while (static_cast(extract_index.back()) < image.GetSize().back()) { extractor.SetIndex(extract_index); @@ -100,7 +100,7 @@ struct SliceBySliceDecorator for (unsigned int e = iter_dim; e + 1 < dim; ++e) { // if the index element is beyond the size, propagate to next element. - if (extract_index[e] > image.GetSize()[e]) + if (static_cast(extract_index[e]) > image.GetSize()[e]) { extract_index[e] = 0; ++extract_index[e + 1];