Skip to content

Commit

Permalink
Attempt to fix run error on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Apr 27, 2024
1 parent b4ee033 commit ea67db3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CPP/Clipper2Lib/src/clipper.engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,12 +1121,12 @@ namespace Clipper2Lib {
inline bool IsCollinear(const Point64& pt1,
const Point64& sharedPt, const Point64& pt2) // #777
{
#ifdef __aarch64__
double cp = CrossProduct(pt1, sharedPt, pt2);
return std::fabs(cp) < 0.00000001;
#else
//#ifdef __aarch64__
// double cp = CrossProduct(pt1, sharedPt, pt2);
// return std::fabs(cp) < 0.00000001;
//#else
return CrossProduct(pt1, sharedPt, pt2) == 0;
#endif
//#endif
}

bool IsValidAelOrder(const Active& resident, const Active& newcomer)
Expand Down

0 comments on commit ea67db3

Please sign in to comment.