diff options
author | D G Turner | 2017-01-16 12:49:40 +0000 |
---|---|---|
committer | D G Turner | 2017-01-16 12:49:40 +0000 |
commit | f2e03d2c07bab985d941ffc5d681a5b172fa8888 (patch) | |
tree | 7992bfb0e599eb61a36852ab200d6631d681c764 /backends/networking | |
parent | 70dc84e383bfb4a81785b30ce91f7e089a94c031 (diff) | |
download | scummvm-rg350-f2e03d2c07bab985d941ffc5d681a5b172fa8888.tar.gz scummvm-rg350-f2e03d2c07bab985d941ffc5d681a5b172fa8888.tar.bz2 scummvm-rg350-f2e03d2c07bab985d941ffc5d681a5b172fa8888.zip |
CLOUD: Fix Various Compiler Warnings By Adding Casts.
Diffstat (limited to 'backends/networking')
-rw-r--r-- | backends/networking/sdl_net/client.cpp | 2 | ||||
-rw-r--r-- | backends/networking/sdl_net/getclienthandler.cpp | 2 | ||||
-rw-r--r-- | backends/networking/sdl_net/handlers/filespagehandler.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/backends/networking/sdl_net/client.cpp b/backends/networking/sdl_net/client.cpp index fbb5fadf35..0ad366d8a5 100644 --- a/backends/networking/sdl_net/client.cpp +++ b/backends/networking/sdl_net/client.cpp @@ -84,7 +84,7 @@ bool Client::readMoreIfNeeded() { return false; } - if (_stream->write(_buffer, bytes) != bytes) { + if (_stream->write(_buffer, bytes) != (uint32)bytes) { warning("Client::readMoreIfNeeded: failed to write() into MemoryReadWriteStream"); close(); return false; diff --git a/backends/networking/sdl_net/getclienthandler.cpp b/backends/networking/sdl_net/getclienthandler.cpp index b22c80cebf..ef085c6082 100644 --- a/backends/networking/sdl_net/getclienthandler.cpp +++ b/backends/networking/sdl_net/getclienthandler.cpp @@ -145,7 +145,7 @@ void GetClientHandler::handle(Client *client) { } if (readBytes != 0) - if (client->send(_buffer, readBytes) != readBytes) { + if (client->send(_buffer, readBytes) != (int)readBytes) { warning("GetClientHandler: unable to send all bytes to the client"); client->close(); return; diff --git a/backends/networking/sdl_net/handlers/filespagehandler.cpp b/backends/networking/sdl_net/handlers/filespagehandler.cpp index 01b40c3bcb..dea7367c1b 100644 --- a/backends/networking/sdl_net/handlers/filespagehandler.cpp +++ b/backends/networking/sdl_net/handlers/filespagehandler.cpp @@ -56,7 +56,7 @@ Common::String encodeHtmlEntities(Common::String s) { result += ">"; else if (s[i] == '&') result += "&"; - else if (s[i] > 0x7F) + else if (s[i] > (char)0x7F) result += Common::String::format("&#%d;", (int)s[i]); else result += s[i]; return result; |