[IOT-2539] Clean sign-compare warnings
[iotivity.git] / resource / csdk / connectivity / test / caprotocolmessagetest.cpp
index e05308b..5f63420 100644 (file)
@@ -208,7 +208,7 @@ TEST(CAProtocolMessage, CAGetTokenFromPDU)
     memset(&inData, 0, sizeof(CAInfo_t));
     inData.token = (CAToken_t)"token";
     tokenLength = strlen(inData.token);
-    ASSERT_LE(tokenLength, UINT8_MAX);
+    ASSERT_LE(tokenLength, static_cast<size_t>(UINT8_MAX));
     inData.tokenLength = (uint8_t)tokenLength;
     inData.type = CA_MSG_NONCONFIRM;