From 453d9dad7f061d412578155895bfc484d692fa29 Mon Sep 17 00:00:00 2001 From: tovjemam Date: Sun, 22 Mar 2026 19:43:03 +0100 Subject: [PATCH] Fix compiler warnings --- src/gui/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/context.cpp b/src/gui/context.cpp index 35a52c7..c16d3b9 100644 --- a/src/gui/context.cpp +++ b/src/gui/context.cpp @@ -87,7 +87,7 @@ glm::vec2 gui::Context::MeasureText(std::string_view text) glm::vec2 cursor(0.0f); - while (cp = DecodeUTF8Codepoint(p, end)) + while ((cp = DecodeUTF8Codepoint(p, end))) { if (cp == ' ') { @@ -151,7 +151,7 @@ void gui::Context::DrawText(std::string_view text, const glm::vec2& pos, uint32_ uint32_t curr_color = color; - while (cp = DecodeUTF8Codepoint(p, end)) + while ((cp = DecodeUTF8Codepoint(p, end))) { if (cp == ' ') {