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

digitall noreply at scummvm.org
Thu Dec 1 03:34:05 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:
d1c227f3f2 SCUMM: Fix Signed vs. Unsigned GCC Compiler Warning


Commit: d1c227f3f251611a2a1a0f08e5743bacf394ed0b
    https://github.com/scummvm/scummvm/commit/d1c227f3f251611a2a1a0f08e5743bacf394ed0b
Author: D G Turner (digitall at scummvm.org)
Date: 2022-12-01T03:33:31Z

Commit Message:
SCUMM: Fix Signed vs. Unsigned GCC Compiler Warning

Changed paths:
    engines/scumm/saveload.cpp


diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index f6fc24620ca..9a927822256 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -1220,7 +1220,7 @@ bool ScummEngine::changeSavegameName(int slot, char *newName) {
 
 	in->seek(sizeof(hdr), SEEK_SET);
 
-	for (int i = 0; i < bufferSizeNoHdr; i++) {
+	for (uint i = 0; i < (uint)bufferSizeNoHdr; i++) {
 		saveBuffer[i] = in->readByte();
 
 		if (in->err()) {
@@ -1240,7 +1240,7 @@ bool ScummEngine::changeSavegameName(int slot, char *newName) {
 		return false;
 	}
 
-	for (int i = 0; i < bufferSizeNoHdr; i++) {
+	for (uint i = 0; i < (uint)bufferSizeNoHdr; i++) {
 		out->writeByte(saveBuffer[i]);
 
 		if (out->err()) {




More information about the Scummvm-git-logs mailing list