Restore PCH builds and make GCC happy

This commit is contained in:
leak committed 2014-05-31 01:02:03 +02:00
1 parent b520f7da01
commit f05d540658
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ void AuthSession::AsyncReadHeader()
{
_socket.read_some(boost::asio::buffer(&_readBuffer[1], sizeof(uint8) + sizeof(uint16))); //error + size
AsyncReadData(entry.handler, (uint16)&_readBuffer[2], sizeof(uint8) + sizeof(uint8) + sizeof(uint16)); // cmd + error + size
AsyncReadData(entry.handler, *reinterpret_cast<uint16*>(&_readBuffer[2]), sizeof(uint8) + sizeof(uint8) + sizeof(uint16)); // cmd + error + size
}
else
{