aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-23 08:42:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-23 08:42:01 +0000
commitda5c8a121f4cf67df54333ffb036c8b8a0356dad (patch)
tree74534610d7121777481cf0aff68e8abab4ef1a19
parent76c36688d09b86a1b3a5e2d363e0fefa81d7c8a2 (diff)
changed the long to int typecasts to see if icc 8.0 complains less on this
-rw-r--r--ares/ares_gethostbyaddr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c
index 89b4f0a40..7e91dce19 100644
--- a/ares/ares_gethostbyaddr.c
+++ b/ares/ares_gethostbyaddr.c
@@ -87,10 +87,10 @@ static void next_lookup(struct addr_query *aquery)
{
case 'b':
addr = ntohl(aquery->addr.s_addr);
- a1 = (int)(addr >> 24) & 0xff;
- a2 = (int)(addr >> 16) & 0xff;
- a3 = (int)(addr >> 8) & 0xff;
- a4 = (int)addr & 0xff;
+ a1 = (int)((addr >> 24) & 0xff);
+ a2 = (int)((addr >> 16) & 0xff);
+ a3 = (int)((addr >> 8) & 0xff);
+ a4 = (int)(addr & 0xff);
sprintf(name, "%d.%d.%d.%d.in-addr.arpa", a4, a3, a2, a1);
aquery->remaining_lookups = p + 1;
ares_query(aquery->channel, name, C_IN, T_PTR, addr_callback,