From fcb81d301513b279443a8ca4d4d2ffb6612e617c Mon Sep 17 00:00:00 2001 From: talorion Date: Fri, 21 Aug 2020 18:31:17 +0200 Subject: [PATCH] fixed warnings: comparison of integer expressions of different signedness --- .../cellular/source/framework/device/CellularContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/cellular/source/framework/device/CellularContext.cpp b/connectivity/cellular/source/framework/device/CellularContext.cpp index 6773a24dce..6a2801888a 100644 --- a/connectivity/cellular/source/framework/device/CellularContext.cpp +++ b/connectivity/cellular/source/framework/device/CellularContext.cpp @@ -107,7 +107,7 @@ void CellularContext::validate_ip_address() CellularContext::pdp_type_t CellularContext::string_to_pdp_type(const char *pdp_type_str) { pdp_type_t pdp_type = DEFAULT_PDP_TYPE; - int len = strlen(pdp_type_str); + size_t len = strlen(pdp_type_str); if (len == 6 && memcmp(pdp_type_str, "IPV4V6", len) == 0) { pdp_type = IPV4V6_PDP_TYPE;