diff options
author | Dane Springmeyer <dane@mapbox.com> | 2014-05-29 13:10:51 -0700 |
---|---|---|
committer | Dane Springmeyer <dane@mapbox.com> | 2014-05-29 13:24:26 -0700 |
commit | 07767951ee8cf17620fd1a7eb86e1bba600c3ba0 (patch) | |
tree | f21d7f4d716540b34fe706f2f5cb11797a6e5aeb /src/clipper | |
parent | b4d5b1ca657c92dc03a8b265b35637137ff1a50b (diff) | |
download | qtlocation-mapboxgl-07767951ee8cf17620fd1a7eb86e1bba600c3ba0.tar.gz |
use std::abs
Diffstat (limited to 'src/clipper')
-rwxr-xr-x | src/clipper/clipper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clipper/clipper.cpp b/src/clipper/clipper.cpp index 95975450e3..56ad58416d 100755 --- a/src/clipper/clipper.cpp +++ b/src/clipper/clipper.cpp @@ -2152,13 +2152,13 @@ void Clipper::IntersectEdges(TEdge *e1, TEdge *e2, else if (e1->PolyTyp != e2->PolyTyp) { //toggle subj open path OutIdx on/off when Abs(clip.WndCnt) == 1 ... - if ((e1->WindDelta == 0) && abs(e2->WindCnt) == 1 && + if ((e1->WindDelta == 0) && std::abs(e2->WindCnt) == 1 && (m_ClipType != ctUnion || e2->WindCnt2 == 0)) { AddOutPt(e1, Pt); if (e1Contributing) e1->OutIdx = Unassigned; } - else if ((e2->WindDelta == 0) && (abs(e1->WindCnt) == 1) && + else if ((e2->WindDelta == 0) && (std::abs(e1->WindCnt) == 1) && (m_ClipType != ctUnion || e1->WindCnt2 == 0)) { AddOutPt(e2, Pt); |