[Insight-developers] Why is m_NumberOfThreads signed?

David Doria daviddoria at gmail.com
Thu Apr 14 16:34:07 EDT 2011


In itkProcessObject, m_NumberOfThreads is declared as an int. Is there a
reason it is not unsigned int?

Simple operations like this:

for ( unsigned int t = 0; t < this->GetNumberOfThreads(); ++t )

currently require casting to prevent signed/unsigned comparison warnings.

Thoughts?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110414/8ca84d02/attachment.htm>


More information about the Insight-developers mailing list