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