[vtk-developers] unsigned/signed comparison
David Doria
daviddoria+vtk at gmail.com
Wed Dec 23 16:49:16 EST 2009
Is the preferred way to do this comparison:
for(unsigned int i = 0; i < polygon2->GetNumberOfPoints(); i++)
to use a signed int for the counter:
for(int i = 0; i < polygon2->GetNumberOfPoints(); i++)
or cast the compare value as an unsigned int:
for(unsigned int i = 0; i < static_cast<unsigned
int>(polygon2->GetNumberOfPoints()); i++)
Thanks,
David
More information about the vtk-developers
mailing list