[Scummvm-git-logs] scummvm master -> 89f05c4bf16f02b5ee0d7e20d87563613fcf4b30

bluegr bluegr at gmail.com
Sat Jul 17 06:20:46 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:
89f05c4bf1 BACKENDS: Fix compiler warning


Commit: 89f05c4bf16f02b5ee0d7e20d87563613fcf4b30
    https://github.com/scummvm/scummvm/commit/89f05c4bf16f02b5ee0d7e20d87563613fcf4b30
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-07-17T09:20:44+03:00

Commit Message:
BACKENDS: Fix compiler warning

size is int64, lu is for unsigned long, which depends on the platform.

Changed paths:
    backends/networking/sdl_net/getclienthandler.cpp


diff --git a/backends/networking/sdl_net/getclienthandler.cpp b/backends/networking/sdl_net/getclienthandler.cpp
index 9de826ec0d..d251b5ceb2 100644
--- a/backends/networking/sdl_net/getclienthandler.cpp
+++ b/backends/networking/sdl_net/getclienthandler.cpp
@@ -110,7 +110,7 @@ void GetClientHandler::prepareHeaders() {
 		setHeader("Content-Type", "text/html; charset=UTF-8");
 
 	if (!_specialHeaders.contains("Content-Length") && _stream)
-		setHeader("Content-Length", Common::String::format("%lu", _stream->size()));
+		setHeader("Content-Length", Common::String::format("%u", unsigned(_stream->size())));
 
 	_headers = Common::String::format("HTTP/1.1 %ld %s\r\n", _responseCode, responseMessage(_responseCode));
 	for (Common::HashMap<Common::String, Common::String>::iterator i = _specialHeaders.begin(); i != _specialHeaders.end(); ++i)




More information about the Scummvm-git-logs mailing list