From 457c44c922ca5ff6178450d7ab2bd49637423044 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 17 Feb 2025 23:31:59 +0900 Subject: [PATCH] gl_engine: fix a compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ --- src/renderer/gl_engine/tvgGlTessellator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/gl_engine/tvgGlTessellator.cpp b/src/renderer/gl_engine/tvgGlTessellator.cpp index 7bd23e7b..4d90746f 100644 --- a/src/renderer/gl_engine/tvgGlTessellator.cpp +++ b/src/renderer/gl_engine/tvgGlTessellator.cpp @@ -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);