Index: src/utils/SkInterpolator.cpp |
diff --git a/src/utils/SkInterpolator.cpp b/src/utils/SkInterpolator.cpp |
index 97574e475b4ed791702cd688cd7e35672a5b06e2..03e7e4a83f9d230f60bf5b934601648dfb20ae04 100644 |
--- a/src/utils/SkInterpolator.cpp |
+++ b/src/utils/SkInterpolator.cpp |
@@ -62,8 +62,7 @@ |
SkMSec nextTime, const SkScalar blend[4]) { |
SkASSERT(time > prevTime && time < nextTime); |
- SkScalar t = SkScalarDiv((SkScalar)(time - prevTime), |
- (SkScalar)(nextTime - prevTime)); |
+ SkScalar t = (SkScalar)(time - prevTime) / (SkScalar)(nextTime - prevTime); |
return blend ? |
SkUnitCubicInterp(t, blend[0], blend[1], blend[2], blend[3]) : t; |
} |