mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
Some fixes to eliminate warning
This commit is contained in:
@@ -502,8 +502,8 @@ static void ComputeTangency (const Contap_TheSearch& solrst,
|
||||
LocTrans = TopAbs_EXTERNAL; // et pourquoi pas INTERNAL
|
||||
}
|
||||
else {
|
||||
if ((test > 0.)&& arcorien == TopAbs_FORWARD ||
|
||||
(test < 0.)&& arcorien == TopAbs_REVERSED){
|
||||
if ((test > 0. && arcorien == TopAbs_FORWARD) ||
|
||||
(test < 0. && arcorien == TopAbs_REVERSED)){
|
||||
LocTrans = TopAbs_FORWARD;
|
||||
}
|
||||
else {
|
||||
@@ -544,8 +544,8 @@ static void ComputeTangency (const Contap_TheSearch& solrst,
|
||||
LocTrans = TopAbs_EXTERNAL; // et pourquoi pas INTERNAL
|
||||
}
|
||||
else {
|
||||
if ((test > 0.)&& arcorien == TopAbs_FORWARD ||
|
||||
(test < 0.)&& arcorien == TopAbs_REVERSED){
|
||||
if ((test > 0. && arcorien == TopAbs_FORWARD) ||
|
||||
(test < 0. && arcorien == TopAbs_REVERSED)){
|
||||
LocTrans = TopAbs_FORWARD;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user