mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-25 15:48:58 +00:00
sw_engine: fix data overflow case.
Change-Id: I01f90a8a6b3bca38142c8c16d1990b5b1a09d081
This commit is contained in:
parent
7b004363f9
commit
3dc3cfd8c0
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ static constexpr auto SW_STROKE_TAG_END = 8;
|
||||||
|
|
||||||
static inline SwFixed SIDE_TO_ROTATE(const int32_t s)
|
static inline SwFixed SIDE_TO_ROTATE(const int32_t s)
|
||||||
{
|
{
|
||||||
return (SW_ANGLE_PI2 - (s) * SW_ANGLE_PI);
|
return (SW_ANGLE_PI2 - static_cast<SwFixed>(s) * SW_ANGLE_PI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue