Fix clang warning in lowpan unit test. (#975)

This commit is contained in:
Jonathan Hui
2016-11-16 17:24:46 +08:00
committed by GitHub
parent cfd9707ccf
commit 5105a0bc5e
+1 -1
View File
@@ -220,7 +220,7 @@ static void Test(TestIphcVector &aVector, bool aCompress, bool aDecompress)
{
// Append payload to the IPv6 Packet.
memcpy(result + message->GetLength(), iphc + decompressedBytes,
iphcLength - decompressedBytes);
iphcLength - static_cast<uint16_t>(decompressedBytes));
printf("Resulted IPv6 uncompressed packet: \n");
otTestPrintHex(result, message->GetLength() + iphcLength - decompressedBytes);