mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
gl_engine: fix a compiler warning
- comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’
This commit is contained in:
parent
acbc3b3ba9
commit
457c44c922
1 changed files with 1 additions and 1 deletions
|
@ -1997,7 +1997,7 @@ void DashStroke::doStroke(const PathCommand *cmds, uint32_t cmd_count, const Poi
|
|||
bool gap = false;
|
||||
if (!tvg::zero(mDashOffset)) {
|
||||
auto len = 0.0f;
|
||||
for (auto i = 0; i < mDashCount; ++i) len += mDashPattern[i];
|
||||
for (uint32_t i = 0; i < mDashCount; ++i) len += mDashPattern[i];
|
||||
if (mDashCount % 2) len *= 2;
|
||||
|
||||
offset = fmodf(offset, len);
|
||||
|
|
Loading…
Add table
Reference in a new issue