Replaced unsigned long with Uint32 in the public API (avoids size problems with bindings)

This commit is contained in:
Laurent Gomila 2011-11-20 13:50:11 +01:00
parent 017ef652f9
commit a5d40de8a2
16 changed files with 22 additions and 22 deletions

View file

@ -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