From 73914537d144061eedcb71caf7aae47e606b3a1d Mon Sep 17 00:00:00 2001 From: akaftasev Date: Mon, 7 Aug 2023 09:58:01 +0100 Subject: [PATCH] 0033445: Coding - Changing binary XOR in boolean expression Changed binary XOR to the ternary operator. --- src/ChFi2d/ChFi2d_FilletAlgo.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChFi2d/ChFi2d_FilletAlgo.cxx b/src/ChFi2d/ChFi2d_FilletAlgo.cxx index f5ae1e87a8..8ef57b9b3f 100644 --- a/src/ChFi2d/ChFi2d_FilletAlgo.cxx +++ b/src/ChFi2d/ChFi2d_FilletAlgo.cxx @@ -597,7 +597,7 @@ TopoDS_Edge ChFi2d_FilletAlgo::Result(const gp_Pnt& thePoint, TopoDS_Edge& theEd gp_Vec aCircleDir; aCircle->D1(aParam1, aPoint1, aCircleDir); - if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ^ aIsOut) + if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ? !aIsOut : aIsOut) aStart = aNearest->getParam(); else anEnd = aNearest->getParam(); @@ -619,7 +619,7 @@ TopoDS_Edge ChFi2d_FilletAlgo::Result(const gp_Pnt& thePoint, TopoDS_Edge& theEd aCircle->D1(aParam2, aPoint2, aCircleDir); - if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ^ (!aIsOut)) + if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ? aIsOut : !aIsOut) aStart = aNearest->getParam2(); else anEnd = aNearest->getParam2();