1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix many warnings for x64

This commit is contained in:
Ted John
2016-08-27 23:32:15 +01:00
parent 1f398a69ff
commit 8cf7e87b5c
58 changed files with 187 additions and 173 deletions

View File

@@ -272,7 +272,7 @@ public:
timeval timeout;
timeout.tv_sec = 0;
timeout.tv_usec = 0;
if (select(_socket + 1, nullptr, &writeFD, nullptr, &timeout) > 0)
if (select((int)(_socket + 1), nullptr, &writeFD, nullptr, &timeout) > 0)
{
error = 0;
socklen_t len = sizeof(error);
@@ -368,7 +368,7 @@ public:
throw Exception("Socket not connected.");
}
int readBytes = recv(_socket, (char *)buffer, size, 0);
int readBytes = recv(_socket, (char *)buffer, (int)size, 0);
if (readBytes == 0)
{
*sizeReceived = 0;
@@ -439,7 +439,7 @@ private:
else
{
memcpy(ss, result->ai_addr, result->ai_addrlen);
*ss_len = result->ai_addrlen;
*ss_len = (int)result->ai_addrlen;
freeaddrinfo(result);
return true;
}