[Scummvm-git-logs] scummvm master -> 713f51d20930f49db70a34bb9572e333bf716ad2
digitall
noreply at scummvm.org
Thu Mar 24 23:51:04 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:
713f51d209 AGS: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
Commit: 713f51d20930f49db70a34bb9572e333bf716ad2
https://github.com/scummvm/scummvm/commit/713f51d20930f49db70a34bb9572e333bf716ad2
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-24T23:50:22Z
Commit Message:
AGS: 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 884f37a1e5e..54c55d5b320 100644
--- a/engines/ags/engine/main/config.cpp
+++ b/engines/ags/engine/main/config.cpp
@@ -110,7 +110,7 @@ static WindowSetup parse_window_mode(const String &option, bool as_windowed, Win
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