From f2e03d2c07bab985d941ffc5d681a5b172fa8888 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 16 Jan 2017 12:49:40 +0000 Subject: CLOUD: Fix Various Compiler Warnings By Adding Casts. --- backends/networking/sdl_net/client.cpp | 2 +- backends/networking/sdl_net/getclienthandler.cpp | 2 +- backends/networking/sdl_net/handlers/filespagehandler.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backends/networking') 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; -- cgit v1.2.3