Fix warning

This commit is contained in:
Rebecca Cox 2018-01-12 16:14:30 +01:00
parent bf1b755dc8
commit 3b46849c79

View File

@ -306,12 +306,12 @@ void RivIntersectionPartMgr::calculateElementBasedGeoMechTextureCoords(cvf::Vec2
{ {
cvf::Vec2f* rawPtr = textureCoords->ptr(); cvf::Vec2f* rawPtr = textureCoords->ptr();
for (int triangleIdx = 0; triangleIdx < triangleToCellIdx.size(); triangleIdx++) for (size_t triangleIdx = 0; triangleIdx < triangleToCellIdx.size(); triangleIdx++)
{ {
size_t resIdx = triangleToCellIdx[triangleIdx]; size_t resIdx = triangleToCellIdx[triangleIdx];
float resValue = resultValues[resIdx]; float resValue = resultValues[resIdx];
int triangleVxIdx = triangleIdx * 3; size_t triangleVxIdx = triangleIdx * 3;
if (resValue == HUGE_VAL || resValue != resValue) // a != a is true for NAN's if (resValue == HUGE_VAL || resValue != resValue) // a != a is true for NAN's
{ {