mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 10:27:49 +00:00
[unit-test] fix implicit conversion in test_lowpan.cpp (#4533)
This commit is contained in:
@@ -218,7 +218,7 @@ static void Test(TestIphcVector &aVector, bool aCompress, bool aDecompress)
|
||||
iphcLength - static_cast<uint16_t>(decompressedBytes));
|
||||
|
||||
DumpBuffer("Resulted IPv6 uncompressed packet", result,
|
||||
message->GetLength() + iphcLength - decompressedBytes);
|
||||
message->GetLength() + iphcLength - static_cast<uint16_t>(decompressedBytes));
|
||||
|
||||
VerifyOrQuit(decompressedBytes == aVector.mIphcHeader.mLength, "6lo: Lowpan::Decompress failed");
|
||||
VerifyOrQuit(message->GetOffset() == aVector.mPayloadOffset, "6lo: Lowpan::Decompress failed");
|
||||
|
||||
Reference in New Issue
Block a user