diff --git a/include/otbSARTilesCoregistrationFunctor.h b/include/otbSARTilesCoregistrationFunctor.h index e5e179bae049b40d832cccc72470200d2582892e..b7f7f2681b3489afb0ca23b738af1f47a287097f 100644 --- a/include/otbSARTilesCoregistrationFunctor.h +++ b/include/otbSARTilesCoregistrationFunctor.h @@ -347,9 +347,9 @@ public: } return; } - if ((index_InRegion[0] + m_SizeWindow) > + if (static_cast<ImageInIndexValueType>(index_InRegion[0] + m_SizeWindow) > static_cast<ImageInIndexValueType>(inputPtr->GetLargestPossibleRegion().GetSize()[0]) || - (index_InRegion[1] + m_SizeWindow) > + static_cast<ImageInIndexValueType>(index_InRegion[1] + m_SizeWindow) > static_cast<ImageInIndexValueType>(inputPtr->GetLargestPossibleRegion().GetSize()[1])) { for (unsigned int i = 0; i < lastInd; i++)