Skip to content

Commit c9cdc87

Browse files
committed
Merge pull request #21 from jcfr/fix-sign-comp-warnings
Fix sign comparison warnings in SingleImageCostFunction
2 parents a1791f0 + a2dcfbe commit c9cdc87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/itkSingleImageCostFunction.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ SingleImageCostFunction<TImage>
8888
{
8989
// Convert parameters to point
9090
PointType point;
91-
for (int i=0; i<ImageDimension; i++)
91+
for (unsigned int i=0; i<ImageDimension; i++)
9292
{
9393
point[i] = static_cast<typename PointType::ValueType>( parameters[i] );
9494
}
@@ -137,7 +137,7 @@ SingleImageCostFunction<TImage>
137137

138138
// Convert the image function output to the cost function derivative
139139
const typename DerivativeType::ValueType DerivativeThreshold = 15.0;
140-
for (int i=0; i<ImageDimension; i++)
140+
for (unsigned int i=0; i<ImageDimension; i++)
141141
{
142142
derivative[i] = static_cast<typename DerivativeType::ValueType>( output[i] );
143143

0 commit comments

Comments
 (0)