Index: src/core/SkGeometry.cpp |
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp |
index 0f792d399d91bf2102aef9526cc2c0f1f53050ae..671a1eacc39e1138cf4c7fc9877f39ac49620e61 100644 |
--- a/src/core/SkGeometry.cpp |
+++ b/src/core/SkGeometry.cpp |
@@ -62,7 +62,7 @@ |
return 0; |
} |
- SkScalar r = numer / denom; |
+ SkScalar r = SkScalarDiv(numer, denom); |
if (SkScalarIsNaN(r)) { |
return 0; |
} |
@@ -1149,7 +1149,7 @@ |
A = -B; |
SkScalar denom = SkScalarMulAdd(SkScalarMulAdd(A, t, B), t, C); |
- return numer / denom; |
+ return SkScalarDiv(numer, denom); |
} |
// F' = 2 (C t (1 + t (-1 + w)) - A (-1 + t) (t (-1 + w) - w) + B (1 - 2 t) w) |