From 5105a0bc5e5f15cdaa922f822ade63642180264f Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Wed, 16 Nov 2016 17:24:46 +0800 Subject: [PATCH] Fix clang warning in lowpan unit test. (#975) --- 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 2872e1a2b..1c01f254d 100644 --- a/tests/unit/test_lowpan.cpp +++ b/tests/unit/test_lowpan.cpp @@ -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(decompressedBytes)); printf("Resulted IPv6 uncompressed packet: \n"); otTestPrintHex(result, message->GetLength() + iphcLength - decompressedBytes);