Replaced unsigned long with Uint32 in the public API (avoids size problems with bindings)
This commit is contained in:
parent
017ef652f9
commit
a5d40de8a2
16 changed files with 22 additions and 22 deletions
|
@ -277,7 +277,7 @@ Socket::Status TcpSocket::Send(Packet& packet)
|
|||
const char* data = packet.OnSend(size);
|
||||
|
||||
// First send the packet size
|
||||
Uint32 packetSize = htonl(static_cast<unsigned long>(size));
|
||||
Uint32 packetSize = htonl(static_cast<Uint32>(size));
|
||||
Status status = Send(reinterpret_cast<const char*>(&packetSize), sizeof(packetSize));
|
||||
|
||||
// Make sure that the size was properly sent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue