Skip to content

Commit 2a6f006

Browse files
committed
fixed warnings: comparison of integer expressions of different signedness
1 parent c7d520e commit 2a6f006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectivity/netsocket/source/nsapi_dns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ static nsapi_size_or_error_t nsapi_dns_query_multiple(NetworkStack *stack, const
489489
nsapi_addr *tmp = new (std::nothrow) nsapi_addr_t [MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT];
490490
int cached = nsapi_dns_cache_find(host, version, tmp);
491491
if (cached > 0) {
492-
for (int i = 0; i < MIN(cached, addr_count); i++) {
492+
for (unsigned int i = 0; i < MIN(cached, addr_count); i++) {
493493
addr[i] = tmp[i];
494494
}
495495
delete [] tmp;

0 commit comments

Comments
 (0)