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

digitall noreply at scummvm.org
Mon Apr 25 00:31:24 UTC 2022


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

Summary:
a6a3b324bf AGS: Fix Signed vs. Unsigned Comparison GCC Compiler Warning


Commit: a6a3b324bf5323f9af380535bfbb1d484370b6e0
    https://github.com/scummvm/scummvm/commit/a6a3b324bf5323f9af380535bfbb1d484370b6e0
Author: D G Turner (digitall at scummvm.org)
Date: 2022-04-25T01:30:15+01:00

Commit Message:
AGS: Fix Signed vs. Unsigned Comparison GCC Compiler Warning

Changed paths:
    engines/ags/engine/game/savegame_v321.cpp


diff --git a/engines/ags/engine/game/savegame_v321.cpp b/engines/ags/engine/game/savegame_v321.cpp
index 86ec036b97d..816a6412da9 100644
--- a/engines/ags/engine/game/savegame_v321.cpp
+++ b/engines/ags/engine/game/savegame_v321.cpp
@@ -96,7 +96,7 @@ static HSaveError restore_game_scripts(Stream *in, const PreservedParams &pp, Re
 	r_data.GlobalScript.Data.reset(new char[gdatasize]);
 	in->Read(r_data.GlobalScript.Data.get(), gdatasize);
 
-	if (in->ReadInt32() != _G(numScriptModules)) {
+	if (in->ReadInt32() != (int32_t) _G(numScriptModules)) {
 		return new SavegameError(kSvgErr_GameContentAssertion, "Mismatching number of script modules.");
 	}
 	r_data.ScriptModules.resize(_G(numScriptModules));




More information about the Scummvm-git-logs mailing list