fixed warnings: comparison of integer expressions of different signedness

pull/13476/head
talorion 2020-08-22 12:51:59 +02:00 committed by Gregor Mayramhof
parent c7d520ee74
commit 2a6f00642e
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ static nsapi_size_or_error_t nsapi_dns_query_multiple(NetworkStack *stack, const
nsapi_addr *tmp = new (std::nothrow) nsapi_addr_t [MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT]; nsapi_addr *tmp = new (std::nothrow) nsapi_addr_t [MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT];
int cached = nsapi_dns_cache_find(host, version, tmp); int cached = nsapi_dns_cache_find(host, version, tmp);
if (cached > 0) { if (cached > 0) {
for (int i = 0; i < MIN(cached, addr_count); i++) { for (unsigned int i = 0; i < MIN(cached, addr_count); i++) {
addr[i] = tmp[i]; addr[i] = tmp[i];
} }
delete [] tmp; delete [] tmp;