lien 242 added cast to ScalarType on "2.0" to avoid warning in case of float usage

This commit is contained in:
Nico Pietroni 2009-07-14 14:33:00 +00:00
parent 61d4d72c4c
commit 046558798a
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ public:
ScalarType QbAfter = QualityFunc(v0, v3, v2);
// < 0 if the average quality of faces improves after flip
_priority = (Qa + Qb - QaAfter - QbAfter) / 2.0;
_priority = (Qa + Qb - QaAfter - QbAfter) / (ScalarType)2.0;
return _priority;
}