[Scummvm-git-logs] scummvm master -> 77970543184e727bc6516e0ba14b917ce4f92d54

digitall noreply at scummvm.org
Mon Mar 28 15:39:28 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:
7797054318 AGS: Re-fix Signed vs. Unsigned Comparison GCC Compiler Warning


Commit: 77970543184e727bc6516e0ba14b917ce4f92d54
    https://github.com/scummvm/scummvm/commit/77970543184e727bc6516e0ba14b917ce4f92d54
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-28T16:38:57+01:00

Commit Message:
AGS: Re-fix Signed vs. Unsigned Comparison GCC Compiler Warning

This is emitted when -Wsign-compare is passed.

Changed paths:
    engines/ags/engine/main/config.cpp


diff --git a/engines/ags/engine/main/config.cpp b/engines/ags/engine/main/config.cpp
index 10a391bd294..476a6931d12 100644
--- a/engines/ags/engine/main/config.cpp
+++ b/engines/ags/engine/main/config.cpp
@@ -113,7 +113,7 @@ WindowSetup parse_window_mode(const String &option, bool as_windowed, WindowSetu
 	if (at == 0) { // try parse as a scale (xN)
 		int scale = StrUtil::StringToInt(option.Mid(1));
 		if (scale > 0) return WindowSetup(scale, exp_wmode);
-	} else if (at != -1) { // else try parse as a "width x height"
+	} else if (at != (size_t)(-1)) { // else try parse as a "width x height"
 		Size sz = Size(StrUtil::StringToInt(option.Mid(0, at)),
 			StrUtil::StringToInt(option.Mid(at + 1)));
 		if (!sz.IsNull()) return WindowSetup(sz, exp_wmode);




More information about the Scummvm-git-logs mailing list