Imported Upstream version 1.2.0
[platform/upstream/iotivity.git] / plugins / samples / linux / IotivityandZigbeeClient.c
index c781891..2c39b90 100644 (file)
@@ -199,7 +199,8 @@ OCPayload* getChangeBulbTempLevelPayload(uint32_t level)
     errno = 0;
     size_t sizeValue = sizeof(value);
     int strRet = snprintf(value, sizeValue, "%d", level);
-    if (strRet < 0 || (size_t)strRet >= sizeValue)
+
+    if (strRet < 0 || strRet >= (int)sizeValue)
     {
         OIC_LOG_V(ERROR, TAG, "Failed to parse string due to errno: %d", errno);
         exit(1);