From aa78b2688e72c1bbe66034059f76c6a4f4096e97 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Thu, 6 Feb 2020 09:18:58 -0800 Subject: [PATCH] [unit-test] fix implicit conversion in test_lowpan.cpp (#4533) --- tests/unit/test_lowpan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_lowpan.cpp b/tests/unit/test_lowpan.cpp index 1eb8772a9..f95b3ae27 100644 --- a/tests/unit/test_lowpan.cpp +++ b/tests/unit/test_lowpan.cpp @@ -218,7 +218,7 @@ static void Test(TestIphcVector &aVector, bool aCompress, bool aDecompress) iphcLength - static_cast(decompressedBytes)); DumpBuffer("Resulted IPv6 uncompressed packet", result, - message->GetLength() + iphcLength - decompressedBytes); + message->GetLength() + iphcLength - static_cast(decompressedBytes)); VerifyOrQuit(decompressedBytes == aVector.mIphcHeader.mLength, "6lo: Lowpan::Decompress failed"); VerifyOrQuit(message->GetOffset() == aVector.mPayloadOffset, "6lo: Lowpan::Decompress failed");