diff --git a/src/lib/sw_engine/tvgSwStroke.cpp b/src/lib/sw_engine/tvgSwStroke.cpp index edba638d..70eb1ca7 100644 --- a/src/lib/sw_engine/tvgSwStroke.cpp +++ b/src/lib/sw_engine/tvgSwStroke.cpp @@ -35,7 +35,7 @@ static constexpr auto SW_STROKE_TAG_END = 8; static inline SwFixed SIDE_TO_ROTATE(const int32_t s) { - return (SW_ANGLE_PI2 - (s) * SW_ANGLE_PI); + return (SW_ANGLE_PI2 - static_cast(s) * SW_ANGLE_PI); }