mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 06:29:05 +01:00
Minecraft.World (build): Clang compilation fixes
This commit is contained in:
1 parent
c409324bb7
commit
ea80182494
17 files changed
+182
-140
No files matched your search
@@ -5,6 +5,7 @@
|
||||
#include "ThreadName.h"
|
||||
#include "../Minecraft.Client/ServerConnection.h"
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include "../Minecraft.Client/PS3/PS3Extras/ShutdownManager.h"
|
||||
|
||||
// This current socket implementation is for the creation of a single local link. 2 sockets can be created, one for either end of this local
|
||||
@@ -125,7 +126,7 @@ void Socket::setPlayer(INetworkPlayer *player)
|
||||
}
|
||||
}
|
||||
|
||||
void Socket::pushDataToQueue(const BYTE * pbData, DWORD dwDataSize, bool fromHost /*= true*/)
|
||||
void Socket::pushDataToQueue(const byte * pbData, DWORD dwDataSize, bool fromHost /*= true*/)
|
||||
{
|
||||
int queueIdx = SOCKET_CLIENT_END;
|
||||
if(!fromHost)
|
||||
@@ -276,7 +277,7 @@ int Socket::SocketInputStreamLocal::read()
|
||||
byte retval = s_hostQueue[m_queueIdx].front();
|
||||
s_hostQueue[m_queueIdx].pop();
|
||||
LeaveCriticalSection(&s_hostQueueLock[m_queueIdx]);
|
||||
return retval;
|
||||
return static_cast<int>(retval);
|
||||
}
|
||||
LeaveCriticalSection(&s_hostQueueLock[m_queueIdx]);
|
||||
}
|
||||
@@ -394,7 +395,7 @@ int Socket::SocketInputStreamNetwork::read()
|
||||
byte retval = m_socket->m_queueNetwork[m_queueIdx].front();
|
||||
m_socket->m_queueNetwork[m_queueIdx].pop();
|
||||
LeaveCriticalSection(&m_socket->m_queueLockNetwork[m_queueIdx]);
|
||||
return retval;
|
||||
return static_cast<int>(retval);
|
||||
}
|
||||
LeaveCriticalSection(&m_socket->m_queueLockNetwork[m_queueIdx]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user