Commit 6fceb060 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

WRG: fix warning on unsigned/signed comparison

parent fd23cdce
......@@ -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++)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment