[unit-test] fix implicit conversion in test_lowpan.cpp (#4533)

This commit is contained in:
Jonathan Hui
2020-02-07 22:51:48 -08:00
parent 28dd4475b7
commit aa78b2688e
+1 -1
View File
@@ -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");