[Scummvm-git-logs] scummvm master -> 8c79b8e07fa6ba9a2d1cc8f719afb04cc8c34cd4

eriktorbjorn noreply at scummvm.org
Sat May 10 20:06:40 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:
8c79b8e07f MACGUI: Silence warnings


Commit: 8c79b8e07fa6ba9a2d1cc8f719afb04cc8c34cd4
    https://github.com/scummvm/scummvm/commit/8c79b8e07fa6ba9a2d1cc8f719afb04cc8c34cd4
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-05-10T22:06:29+02:00

Commit Message:
MACGUI: Silence warnings

Changed paths:
    graphics/macgui/mactext.cpp


diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index b4fb2229b1a..a85f1944476 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -1828,9 +1828,9 @@ void MacText::getLineCharacter(int x, int y, int *sx, int *sy, int *line, int *c
 	}
 
 
-	for (int i = 0; i < _canvas._text[nrow].chunks.size(); i++) {
+	for (uint i = 0; i < _canvas._text[nrow].chunks.size(); i++) {
 		Common::U32String &text =  _canvas._text[nrow].chunks[i].text;
-		if (ncol > text.size()) {
+		if (ncol > (int)text.size()) {
 			ncol -= text.size();
 			ncharacter += text.size();
 		} else {




More information about the Scummvm-git-logs mailing list