[Scummvm-git-logs] scummvm master -> d41c32a5a94d7798375b9c124ecd067adf278487

digitall noreply at scummvm.org
Sat Oct 4 04:47:54 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:
d41c32a5a9 TOT: Fix Type Limits GCC Compiler Warnings


Commit: d41c32a5a94d7798375b9c124ecd067adf278487
    https://github.com/scummvm/scummvm/commit/d41c32a5a94d7798375b9c124ecd067adf278487
Author: D G Turner (digitall at scummvm.org)
Date: 2025-10-04T05:46:25+01:00

Commit Message:
TOT: Fix Type Limits GCC Compiler Warnings

The selectedGame variable can be set to -1, thus needs to signed for now.

Changed paths:
    engines/tot/saveload.cpp


diff --git a/engines/tot/saveload.cpp b/engines/tot/saveload.cpp
index 5ae74696098..06cd148bb0e 100644
--- a/engines/tot/saveload.cpp
+++ b/engines/tot/saveload.cpp
@@ -601,7 +601,7 @@ Common::String drawAndSelectSaves(Common::StringArray saves, uint selectedGame)
 
 void TotEngine::originalSaveLoadScreen() {
 	uint oldMouseX, oldMouseY;
-	uint selectedGame = 0;
+	int selectedGame = 0;
 	bool modified = false;
 	Common::String saveName = "";
 
@@ -668,7 +668,7 @@ void TotEngine::originalSaveLoadScreen() {
 					}
 				} else if (_mouse->mouseX >= 130 && _mouse->mouseX <= 194) {
 					if (selectedGame >= 0 && !modified) { // Load
-						if (selectedGame < saves.size()) {
+						if (selectedGame < (int)saves.size()) {
 							_mouse->hide();
 							_graphics->putImg(50, 10, menuBgPointer);
 							free(menuBgPointer);




More information about the Scummvm-git-logs mailing list