[Scummvm-git-logs] scummvm master -> 49d51cff3ab044a08ac0f3c4b0a44849afd94072

eriktorbjorn noreply at scummvm.org
Sat Sep 6 17:34:47 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
49d51cff3a BAGEL: Fix signed/unsigned warnings


Commit: 49d51cff3ab044a08ac0f3c4b0a44849afd94072
    https://github.com/scummvm/scummvm/commit/49d51cff3ab044a08ac0f3c4b0a44849afd94072
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-09-06T19:34:31+02:00

Commit Message:
BAGEL: Fix signed/unsigned warnings

Changed paths:
    engines/bagel/mfc/gfx/text_render.cpp


diff --git a/engines/bagel/mfc/gfx/text_render.cpp b/engines/bagel/mfc/gfx/text_render.cpp
index 97e11f5c0a2..95b52dabab3 100644
--- a/engines/bagel/mfc/gfx/text_render.cpp
+++ b/engines/bagel/mfc/gfx/text_render.cpp
@@ -116,7 +116,7 @@ CSize TextRender::renderText(const Common::String &str,
 				dest->hLine(x1, y, x2, textCol);
 			}
 
-			int idx = (nFormat & DT_NOPREFIX) ? Common::String::npos :
+			uint idx = (nFormat & DT_NOPREFIX) ? Common::String::npos :
 				tempLine.findFirstOf('&');
 			if (idx == Common::String::npos) {
 				fragment = tempLine;
@@ -140,7 +140,7 @@ CSize TextRender::renderText(const Common::String &str,
 
 int TextRender::getStringWidth(Graphics::Font *font, const Common::String &str) {
 	Common::String tempLine = str;
-	int idx;
+	uint idx;
 	while ((idx = tempLine.findFirstOf('&')) != Common::String::npos)
 		tempLine.deleteChar(idx);
 




More information about the Scummvm-git-logs mailing list