Index: src/effects/SkDashPathEffect.cpp |
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp |
index 40990585024730af184931f0f53f014b855771bf..10fee23aff48a62ccb549bb91725aa47f900cfed 100644 |
--- a/src/effects/SkDashPathEffect.cpp |
+++ b/src/effects/SkDashPathEffect.cpp |
@@ -277,7 +277,7 @@ bool SkDashPathEffect::filterPath(SkPath* dst, const SkPath& src, |
scale = SkScalarDiv(length, fIntervalLength); |
} else { |
SkScalar div = SkScalarDiv(length, fIntervalLength); |
- int n = SkScalarFloor(div); |
+ int n = SkScalarFloorToInt(div); |
scale = SkScalarDiv(length, n * fIntervalLength); |
} |
} |