mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 03:07:47 +00:00
Fix clang warning in lowpan unit test. (#975)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user