Index: src/pathops/SkOpAngle.cpp |
diff --git a/src/pathops/SkOpAngle.cpp b/src/pathops/SkOpAngle.cpp |
index 479a6f673de9963fd786fb7b6f61ec5486defffb..2da8357add28fa5bd45694ff62f3febfb0380a34 100644 |
--- a/src/pathops/SkOpAngle.cpp |
+++ b/src/pathops/SkOpAngle.cpp |
@@ -181,15 +181,15 @@ int SkOpAngle::allOnOneSide(const SkOpAngle* test) { |
SkASSERT(test->fIsCurve); |
SkDPoint origin = fCurvePart[0]; |
SkDVector line = fCurvePart[1] - origin; |
- float crosses[3]; |
+ double crosses[3]; |
SkPath::Verb testVerb = test->segment()->verb(); |
int iMax = SkPathOpsVerbToPoints(testVerb); |
// SkASSERT(origin == test.fCurveHalf[0]); |
const SkDCurve& testCurve = test->fCurvePart; |
for (int index = 1; index <= iMax; ++index) { |
- float xy1 = (float) (line.fX * (testCurve[index].fY - origin.fY)); |
- float xy2 = (float) (line.fY * (testCurve[index].fX - origin.fX)); |
- crosses[index - 1] = AlmostEqualUlps(xy1, xy2) ? 0 : xy1 - xy2; |
+ double xy1 = line.fX * (testCurve[index].fY - origin.fY); |
+ double xy2 = line.fY * (testCurve[index].fX - origin.fX); |
+ crosses[index - 1] = AlmostBequalUlps(xy1, xy2) ? 0 : xy1 - xy2; |
} |
if (crosses[0] * crosses[1] < 0) { |
return -1; |