Next bunch of warning fixes

This commit is contained in:
Jan Möbius
2016-11-07 14:30:14 +01:00
parent 85e183ae05
commit e75a70774d
6 changed files with 14 additions and 14 deletions

View File

@@ -89,7 +89,7 @@ distPointTriangleSquared( const Point& _p,
if (d < FLT_MIN && d > -FLT_MIN) {
return -1.0;
}
const double invD = 1.0 / d;
const Scalar invD = static_cast<Scalar>(1.0) / d;
// these are not needed for every point, should still perform
// better with many points against one triangle