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

digitall 547637+digitall at users.noreply.github.com
Sat Oct 26 03:59:04 CEST 2019


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:
ea52a99692 SCUMM HE: Fix Compiler Warnings


Commit: ea52a996926fa91bd5b4c240af7582b4d95ba491
    https://github.com/scummvm/scummvm/commit/ea52a996926fa91bd5b4c240af7582b4d95ba491
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-26T02:55:07+01:00

Commit Message:
SCUMM HE: Fix Compiler Warnings

These are flagged by GCC -Wsign-compare.

Changed paths:
    engines/scumm/he/moonbase/net_main.cpp


diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp
index 6ae84ce..d5ce756 100644
--- a/engines/scumm/he/moonbase/net_main.cpp
+++ b/engines/scumm/he/moonbase/net_main.cpp
@@ -174,7 +174,7 @@ int Net::joinSession(int sessionIndex) {
 		return 0;
 	}
 
-	if (sessionIndex >= _sessions->countChildren()) {
+	if (sessionIndex >= (int)_sessions->countChildren()) {
 		warning("Net::joinSession(): session number too big: %d >= %lu", sessionIndex, _sessions->countChildren());
 		return 0;
 	}
@@ -388,7 +388,7 @@ void Net::getSessionName(int sessionNumber, char *buffer, int length) {
 		return;
 	}
 
-	if (sessionNumber >= _sessions->countChildren()) {
+	if (sessionNumber >= (int)_sessions->countChildren()) {
 		*buffer = '\0';
 		warning("Net::getSessionName(): session number too big: %d >= %lu", sessionNumber, _sessions->countChildren());
 		return;
@@ -405,7 +405,7 @@ int Net::getSessionPlayerCount(int sessionNumber) {
 		return 0;
 	}
 
-	if (sessionNumber >= _sessions->countChildren()) {
+	if (sessionNumber >= (int)_sessions->countChildren()) {
 		warning("Net::getSessionPlayerCount(): session number too big: %d >= %lu", sessionNumber, _sessions->countChildren());
 		return 0;
 	}





More information about the Scummvm-git-logs mailing list