Index: src/pathops/SkPathOpsTSect.h |
diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h |
index 4cf5978d9511aed3fb9ec6306552f16cdb302fe2..50e12791f795e6f339601411a6781e8a52855ee0 100644 |
--- a/src/pathops/SkPathOpsTSect.h |
+++ b/src/pathops/SkPathOpsTSect.h |
@@ -1907,7 +1907,7 @@ void SkTSect<TCurve, OppCurve>::BinarySearch(SkTSect<TCurve, OppCurve>* sect1, |
SkDEBUGCODE(sect1->fOppSect = sect2); |
SkDEBUGCODE(sect2->fOppSect = sect1); |
intersections->reset(); |
- intersections->setMax(TCurve::kMaxIntersections * 3); // give extra for slop |
+ intersections->setMax(TCurve::kMaxIntersections + 3); // give extra for slop |
SkTSpan<TCurve, OppCurve>* span1 = sect1->fHead; |
SkTSpan<OppCurve, TCurve>* span2 = sect2->fHead; |
int oppSect, sect = sect1->intersects(span1, sect2, span2, &oppSect); |