From: Daniel Stenberg Date: Wed, 4 Feb 2004 07:51:30 +0000 (+0000) Subject: typecast comparision between signed and unsigned X-Git-Tag: cares-1_1_0~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7fda8ec73e7cb5db81f87b1dcfdc04315a95516;p=curl typecast comparision between signed and unsigned --- diff --git a/ares/ares_parse_a_reply.c b/ares/ares_parse_a_reply.c index 103738b70..1c18b56a9 100644 --- a/ares/ares_parse_a_reply.c +++ b/ares/ares_parse_a_reply.c @@ -85,7 +85,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen, naliases = 0; /* Examine each answer resource record (RR) in turn. */ - for (i = 0; i < ancount; i++) + for (i = 0; i < (int)ancount; i++) { /* Decode the RR up to the data field. */ status = ares_expand_name(aptr, abuf, alen, &rr_name, &len); diff --git a/ares/ares_parse_ptr_reply.c b/ares/ares_parse_ptr_reply.c index 8cb0cbc8e..13b3ab03b 100644 --- a/ares/ares_parse_ptr_reply.c +++ b/ares/ares_parse_ptr_reply.c @@ -66,7 +66,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, /* Examine each answer resource record (RR) in turn. */ hostname = NULL; - for (i = 0; i < ancount; i++) + for (i = 0; i < (int)ancount; i++) { /* Decode the RR up to the data field. */ status = ares_expand_name(aptr, abuf, alen, &rr_name, &len);