[tests] add conditionals around unit tests (#3616)

This commit is contained in:
Jonathan Hui
2019-02-22 09:00:01 -08:00
committed by GitHub
parent fd2503e792
commit b7a9e7afd7
3 changed files with 38 additions and 23 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ static void Test(TestIphcVector &aVector, bool aCompress, bool aDecompress)
if (aVector.mError == OT_ERROR_NONE)
{
uint8_t compressBytes = buffer.GetWritePointer() - result;
uint8_t compressBytes = static_cast<uint8_t>(buffer.GetWritePointer() - result);
// Append payload to the LOWPAN_IPHC.
message->Read(message->GetOffset(), message->GetLength() - message->GetOffset(), result + compressBytes);