diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:55:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:55:58 +0000 |
commit | dfb5090e0f11c40032adf6d8df7bf207ffacc6eb (patch) | |
tree | bf5cec348604dbe479179f985c11d9194f8f4ee6 /ares | |
parent | c7fe8a7a11456abe367d3d815f3c2faf62900fc3 (diff) |
typecase the bitfiddling results since we get a long and we store an int,
they may not be of the size size
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_gethostbyaddr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c index 6e3e6737d..89b4f0a40 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 = addr >> 24; - a2 = (addr >> 16) & 0xff; - a3 = (addr >> 8) & 0xff; - a4 = 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, |