| Index: tests/PathCoverageTest.cpp
|
| diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp
|
| index 303ddcc4cb2e07dea8bee7b45f540fcf0383f5a5..0e4a1539f2c9a9b7d60cfc1aa9c01f72cb2ecbdc 100644
|
| --- a/tests/PathCoverageTest.cpp
|
| +++ b/tests/PathCoverageTest.cpp
|
| @@ -60,7 +60,7 @@
|
| if (d < tol) {
|
| return 1;
|
| } else {
|
| - int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol));
|
| + int temp = SkScalarCeilToInt(SkScalarSqrt(SkScalarDiv(d, tol)));
|
| uint32_t count = SkMin32(SkNextPow2(temp), MAX_POINTS_PER_CURVE);
|
| return count;
|
| }
|
|
|