Minor fix in comments

This commit is contained in:
Laurent Gomila 2011-12-26 11:56:27 +01:00
parent aaa21dfaf6
commit 94a9dfbdfb

View File

@ -308,7 +308,7 @@ Socket::Status TcpSocket::Receive(Packet& packet)
if (myPendingPacket.SizeReceived < sizeof(myPendingPacket.Size)) if (myPendingPacket.SizeReceived < sizeof(myPendingPacket.Size))
{ {
// Loop until we've received the entire size of the packet // Loop until we've received the entire size of the packet
// (even a 4 bytes variable may be received in more than one call) // (even a 4 byte variable may be received in more than one call)
while (myPendingPacket.SizeReceived < sizeof(myPendingPacket.Size)) while (myPendingPacket.SizeReceived < sizeof(myPendingPacket.Size))
{ {
char* data = reinterpret_cast<char*>(&myPendingPacket.Size) + myPendingPacket.SizeReceived; char* data = reinterpret_cast<char*>(&myPendingPacket.Size) + myPendingPacket.SizeReceived;