[Scummvm-git-logs] scummvm master -> db25b79f12c17af02da9b5b23d62b86830f0ef17
digitall
noreply at scummvm.org
Wed Jul 2 01:11:59 UTC 2025
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
ee66a91828 WAGE: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
db25b79f12 SCUMM: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
Commit: ee66a91828b768fa85f103e64a0a7220d7f5c0c7
https://github.com/scummvm/scummvm/commit/ee66a91828b768fa85f103e64a0a7220d7f5c0c7
Author: D G Turner (digitall at scummvm.org)
Date: 2025-07-02T02:10:58+01:00
Commit Message:
WAGE: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
Changed paths:
engines/wage/combat.cpp
diff --git a/engines/wage/combat.cpp b/engines/wage/combat.cpp
index f9b17f267de..f3b6b43b442 100644
--- a/engines/wage/combat.cpp
+++ b/engines/wage/combat.cpp
@@ -315,7 +315,7 @@ bool WageEngine::attackHit(Chr *attacker, Chr *victim, Obj *weapon, int targetIn
Scene *currentScene = victim->_currentScene;
for (int i = victim->_inventory.size() - 1; i >= 0; i--) {
- if (i < victim->_inventory.size())
+ if (i < (int)victim->_inventory.size())
_world->move(victim->_inventory[i], currentScene);
}
Common::String *s = getGroundItemsList(currentScene);
Commit: db25b79f12c17af02da9b5b23d62b86830f0ef17
https://github.com/scummvm/scummvm/commit/db25b79f12c17af02da9b5b23d62b86830f0ef17
Author: D G Turner (digitall at scummvm.org)
Date: 2025-07-02T02:11:22+01:00
Commit Message:
SCUMM: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
Changed paths:
engines/scumm/string.cpp
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 72fd29cdf1a..66da9def51b 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -1573,7 +1573,7 @@ int ScummEngine::convertMessageToString(const byte *msg, byte *dst, int dstSize)
// done here and this way...
if (_game.id == GID_INDY4 && _language == Common::DE_DEU && _currentRoom == 28 &&
isScriptRunning(204) && enhancementEnabled(kEnhTextLocFixes)) {
- const size_t bogusTextLen = sizeof("Across-arms ") - 1;
+ const int bogusTextLen = sizeof("Across-arms ") - 1;
if (dstSize - (end - dst) > bogusTextLen && memcmp(dst - bogusTextLen, "Across-arms ", bogusTextLen) == 0)
dst -= bogusTextLen;
}
More information about the Scummvm-git-logs
mailing list