diff options
Diffstat (limited to 'experimental/Intersection/EdgeWalker.cpp')
-rw-r--r-- | experimental/Intersection/EdgeWalker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/Intersection/EdgeWalker.cpp b/experimental/Intersection/EdgeWalker.cpp index 47bd0373e8..12fe30da79 100644 --- a/experimental/Intersection/EdgeWalker.cpp +++ b/experimental/Intersection/EdgeWalker.cpp @@ -741,7 +741,7 @@ struct Bounds : public SkRect { bool isEmpty() { return fLeft > fRight || fTop > fBottom - || fLeft == fRight && fTop == fBottom + || (fLeft == fRight && fTop == fBottom) || isnan(fLeft) || isnan(fRight) || isnan(fTop) || isnan(fBottom); } @@ -2206,7 +2206,7 @@ static void makeHorizontalList(SkTDArray<HorizontalEdge>& edges, static void skipCoincidence(int lastWinding, int winding, int windingMask, ActiveEdge* activePtr, ActiveEdge* firstCoincident) { - if (((lastWinding & windingMask) == 0) ^ (winding & windingMask) != 0) { + if (((lastWinding & windingMask) == 0) ^ ((winding & windingMask) != 0)) { return; } // FIXME: ? shouldn't this be if (lastWinding & windingMask) ? |