1
0
Fork 0

Fixed Linux compilation.

This commit is contained in:
Mattes D 2015-01-03 22:39:55 +01:00
parent 06c2669cf6
commit 7d13a2a77a
2 changed files with 2 additions and 2 deletions

View File

@ -2272,7 +2272,7 @@ void cProtocol172::HandleVanillaPluginMessage(cByteBuffer & a_ByteBuffer, const
if (BytesRead < static_cast<size_t>(a_PayloadLength))
{
LOGD("Protocol 1.7: Skipping garbage data at the end of a vanilla MC|AdvCdm packet, %u bytes",
a_PayloadLength - BytesRead
static_cast<unsigned>(a_PayloadLength - BytesRead)
);
a_ByteBuffer.SkipRead(a_PayloadLength - BytesRead);
}

View File

@ -2336,7 +2336,7 @@ void cProtocol180::HandlePacketPluginMessage(cByteBuffer & a_ByteBuffer)
if (a_ByteBuffer.GetReadableSpace() > 1)
{
LOGD("Protocol 1.8: Skipping garbage data at the end of a vanilla PluginMessage packet, %u bytes",
a_ByteBuffer.GetReadableSpace() - 1
static_cast<unsigned>(a_ByteBuffer.GetReadableSpace() - 1)
);
a_ByteBuffer.SkipRead(a_ByteBuffer.GetReadableSpace() - 1);
}