diff options
Diffstat (limited to 'tests/PathOpsQuadLineIntersectionThreadedTest.cpp')
-rw-r--r-- | tests/PathOpsQuadLineIntersectionThreadedTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PathOpsQuadLineIntersectionThreadedTest.cpp b/tests/PathOpsQuadLineIntersectionThreadedTest.cpp index c74e9619d4..a931221345 100644 --- a/tests/PathOpsQuadLineIntersectionThreadedTest.cpp +++ b/tests/PathOpsQuadLineIntersectionThreadedTest.cpp @@ -81,7 +81,8 @@ static void testQuadLineIntersectMain(PathOpsThreadState* data) int by = state.fB >> 2; int cx = state.fC & 0x03; int cy = state.fC >> 2; - SkDQuad quad = {{{ax, ay}, {bx, by}, {cx, cy}}}; + SkDQuad quad = {{{(double) ax, (double) ay}, {(double) bx, (double) by}, + {(double) cx, (double) cy}}}; SkReduceOrder reducer; int order = reducer.reduce(quad, SkReduceOrder::kFill_Style); if (order < 3) { |