From 34421a8d46f6aece674ebb43272a7b82ad028015 Mon Sep 17 00:00:00 2001
From: Christophe Palmann <christophe.palmann@c-s.fr>
Date: Mon, 9 Feb 2015 09:58:03 +0100
Subject: [PATCH] WRG: BCO

---
 Code/BasicFilters/otbBCOInterpolateImageFunction.txx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Code/BasicFilters/otbBCOInterpolateImageFunction.txx b/Code/BasicFilters/otbBCOInterpolateImageFunction.txx
index 96f7ad2231..91cda29083 100644
--- a/Code/BasicFilters/otbBCOInterpolateImageFunction.txx
+++ b/Code/BasicFilters/otbBCOInterpolateImageFunction.txx
@@ -155,9 +155,9 @@ BCOInterpolateImageFunction<TInputImage, TCoordRep>
     baseIndex[dim] = itk::Math::Floor< IndexValueType >( index[dim]+0.5 );
     }
 
-  for( int i = 0; i < this->m_WinSize; ++i )
+  for(unsigned int i = 0; i < this->m_WinSize; ++i )
     {
-    for( int j = 0; j < this->m_WinSize; ++j )
+    for(unsigned int j = 0; j < this->m_WinSize; ++j )
       {
       // get neighbor index
       neighIndex[0] = baseIndex[0] + i - this->m_Radius;
@@ -229,9 +229,9 @@ BCOInterpolateImageFunction< otb::VectorImage<TPixel, VImageDimension> , TCoordR
     baseIndex[dim] = itk::Math::Floor< IndexValueType >( index[dim]+0.5 );
     }
 
-  for( int i = 0; i < this->m_WinSize; ++i )
+  for(unsigned int i = 0; i < this->m_WinSize; ++i )
     {
-    for( int j = 0; j < this->m_WinSize; ++j )
+    for(unsigned int j = 0; j < this->m_WinSize; ++j )
       {
       // get neighbor index
       neighIndex[0] = baseIndex[0] + i - this->m_Radius;
-- 
GitLab