Index: src/effects/SkDashPathEffect.cpp |
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp |
index 5296f972d5cef104458b59755192e4378b72acfa..62e6771356ff5112024a9a92b026436e74f34b77 100644 |
--- a/src/effects/SkDashPathEffect.cpp |
+++ b/src/effects/SkDashPathEffect.cpp |
@@ -248,7 +248,7 @@ bool SkDashPathEffect::asPoints(PointData* results, |
len2 -= clampedInitialDashLength; // skip initial partial empty |
} |
} |
- int numMidPoints = SkScalarFloorToInt(SkScalarDiv(len2, fIntervalLength)); |
+ int numMidPoints = SkScalarFloorToInt(len2 / fIntervalLength); |
results->fNumPoints += numMidPoints; |
len2 -= numMidPoints * fIntervalLength; |
bool partialLast = false; |