diff options
-rw-r--r-- | experimental/skottie/SkottieAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/skottie/SkottieAdapter.cpp b/experimental/skottie/SkottieAdapter.cpp index 5186e2c2f8..7ce2f978a4 100644 --- a/experimental/skottie/SkottieAdapter.cpp +++ b/experimental/skottie/SkottieAdapter.cpp @@ -54,7 +54,7 @@ PolyStarAdapter::PolyStarAdapter(sk_sp<sksg::Path> wrapped_node, Type t) void PolyStarAdapter::apply() { const auto count = SkScalarTruncToInt(fPointCount); - const auto arc = SK_ScalarPI * 2 / count; + const auto arc = sk_ieee_float_divide(SK_ScalarPI * 2, count); const auto pt_on_circle = [](const SkPoint& c, SkScalar r, SkScalar a) { return SkPoint::Make(c.x() + r * std::cos(a), |