Add parentheses in unclear expressions when suggested by gcc 7.3.1 on linux

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2020-04-30 12:46:50 +02:00
1 parent 656010ffb9
commit b93b92cae2
1 file changed
+1 -1
@@ -606,7 +606,7 @@ cvf::Vec3d
GeometryTools::barycentricCoords( const cvf::Vec3d& t0, const cvf::Vec3d& t1, const cvf::Vec3d& t2, const cvf::Vec3d& p )
{
// Unnormalized triangle normal
cvf::Vec3d m = ( t1 - t0 ^ t2 - t0 );
cvf::Vec3d m = ( ( t1 - t0 ) ^ ( t2 - t0 ) );
// Absolute components for determining projection plane
int X = 0, Y = 1;