aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/sdl_net
diff options
context:
space:
mode:
Diffstat (limited to 'backends/networking/sdl_net')
-rw-r--r--backends/networking/sdl_net/client.cpp2
-rw-r--r--backends/networking/sdl_net/getclienthandler.cpp2
-rw-r--r--backends/networking/sdl_net/handlers/filespagehandler.cpp2
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;