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

bluegr bluegr at gmail.com
Tue Mar 23 15:32:07 UTC 2021


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:
e074a6da1b SCUMM: Fix compiler warnings for bad formats


Commit: e074a6da1be16ba710197467741a5b4f512c0c34
    https://github.com/scummvm/scummvm/commit/e074a6da1be16ba710197467741a5b4f512c0c34
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-03-23T17:32:04+02:00

Commit Message:
SCUMM: Fix compiler warnings for bad formats

long and size_t are not the same on Win64.

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 078357b038..e6c65e474e 100644
--- a/engines/scumm/he/moonbase/net_main.cpp
+++ b/engines/scumm/he/moonbase/net_main.cpp
@@ -187,7 +187,7 @@ int Net::joinSession(int sessionIndex) {
 	}
 
 	if (sessionIndex >= (int)_sessions->countChildren()) {
-		warning("Net::joinSession(): session number too big: %d >= %lu", sessionIndex, _sessions->countChildren());
+		warning("Net::joinSession(): session number too big: %d >= %d", sessionIndex, (int)_sessions->countChildren());
 		return 0;
 	}
 
@@ -327,13 +327,13 @@ int32 Net::startQuerySessions() {
 	if (!_sessions)
 		return 0;
 
-	debug(1, "Net::startQuerySessions(): got %lu", _sessions->countChildren());
+	debug(1, "Net::startQuerySessions(): got %d", (int)_sessions->countChildren());
 
 	return _sessions->countChildren();
 }
 
 void Net::startQuerySessionsCallback(Common::JSONValue *response) {
-	debug(1, "startQuerySessions: Got: '%s' which is %lu", response->stringify().c_str(), response->countChildren());
+	debug(1, "startQuerySessions: Got: '%s' which is %d", response->stringify().c_str(), (int)response->countChildren());
 
 	_sessionsBeingQueried = false;
 
@@ -557,7 +557,7 @@ void Net::getSessionName(int sessionNumber, char *buffer, int length) {
 
 	if (sessionNumber >= (int)_sessions->countChildren()) {
 		*buffer = '\0';
-		warning("Net::getSessionName(): session number too big: %d >= %lu", sessionNumber, _sessions->countChildren());
+		warning("Net::getSessionName(): session number too big: %d >= %d", sessionNumber, (int)_sessions->countChildren());
 		return;
 	}
 
@@ -573,7 +573,7 @@ int Net::getSessionPlayerCount(int sessionNumber) {
 	}
 
 	if (sessionNumber >= (int)_sessions->countChildren()) {
-		warning("Net::getSessionPlayerCount(): session number too big: %d >= %lu", sessionNumber, _sessions->countChildren());
+		warning("Net::getSessionPlayerCount(): session number too big: %d >= %d", sessionNumber, (int)_sessions->countChildren());
 		return 0;
 	}
 




More information about the Scummvm-git-logs mailing list