Skip to content
Snippets Groups Projects
Commit d703d9a3 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

WRG: correcting the comparison between signed and unsigned integer warning in...

WRG: correcting the comparison between signed and unsigned integer warning in otnNaryParserImageFilter.txx
parent 6c0dc8ce
Branches
Tags
No related merge requests found
...@@ -123,8 +123,8 @@ void NaryParserImageFilter<TImage> ...@@ -123,8 +123,8 @@ void NaryParserImageFilter<TImage>
{ {
typename std::vector<ParserType::Pointer>::iterator itParser; typename std::vector<ParserType::Pointer>::iterator itParser;
typename std::vector< std::vector<PixelType> >::iterator itVImage; typename std::vector< std::vector<PixelType> >::iterator itVImage;
int nbThreads = this->GetNumberOfThreads(); unsigned int nbThreads = this->GetNumberOfThreads();
int nbInputImages = this->GetNumberOfInputs(); unsigned int nbInputImages = this->GetNumberOfInputs();
unsigned int i, j; unsigned int i, j;
//Allocate and initialize the thread temporaries //Allocate and initialize the thread temporaries
...@@ -151,13 +151,14 @@ template< typename TImage > ...@@ -151,13 +151,14 @@ template< typename TImage >
void NaryParserImageFilter<TImage> void NaryParserImageFilter<TImage>
::AfterThreadedGenerateData() ::AfterThreadedGenerateData()
{ {
int nbThreads = this->GetNumberOfThreads(); unsigned int nbThreads = this->GetNumberOfThreads();
unsigned int i;
m_UnderflowCount = 0; m_UnderflowCount = 0;
m_OverflowCount = 0; m_OverflowCount = 0;
// Accumulate counts for each thread // Accumulate counts for each thread
for( int i = 0; i < nbThreads; i++) for(i = 0; i < nbThreads; i++)
{ {
m_UnderflowCount += m_ThreadUnderflow[i]; m_UnderflowCount += m_ThreadUnderflow[i];
m_OverflowCount += m_ThreadOverflow[i]; m_OverflowCount += m_ThreadOverflow[i];
...@@ -181,7 +182,7 @@ void NaryParserImageFilter<TImage> ...@@ -181,7 +182,7 @@ void NaryParserImageFilter<TImage>
{ {
PixelType value; PixelType value;
unsigned int j; unsigned int j;
int nbInputImages = this->GetNumberOfInputs(); unsigned int nbInputImages = this->GetNumberOfInputs();
typedef itk::ImageRegionConstIterator<TImage> ImageRegionConstIteratorType; typedef itk::ImageRegionConstIterator<TImage> ImageRegionConstIteratorType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment