diff options
author | wchang0222%aol.com <devnull@localhost> | 2004-10-26 20:52:35 +0000 |
---|---|---|
committer | wchang0222%aol.com <devnull@localhost> | 2004-10-26 20:52:35 +0000 |
commit | 2e3602e3809cbbba61be1a45a5b3abb857602493 (patch) | |
tree | 70067f49b6bd6967cf4832bbe1c6d8e2ec7d0658 | |
parent | a23363aeff2e6461035fbf16623deea373ee5114 (diff) | |
download | nspr-hg-2e3602e3809cbbba61be1a45a5b3abb857602493.tar.gz |
Bugzilla bug 265709: fixed compiler warnings on LP64 platforms about
casting between a pointer and an integer of different size. r=jpierre.
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r-- | pr/src/misc/prnetdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c index c3b7cdd5..51ba201a 100644 --- a/pr/src/misc/prnetdb.c +++ b/pr/src/misc/prnetdb.c @@ -2135,11 +2135,11 @@ PR_IMPLEMENT(void *) PR_EnumerateAddrInfo(void *iterPtr, #if defined(_PR_INET6_PROBE) if (!_pr_ipv6_is_present) { /* using PRAddrInfoFB */ - PRIntn iter = (PRIntn) iterPtr; + PRIntn iter = (PRIntn)(PRPtrdiff) iterPtr; iter = PR_EnumerateHostEnt(iter, &((PRAddrInfoFB *) base)->hostent, port, result); if (iter < 0) iter = 0; - return (void *) iter; + return (void *)(PRPtrdiff) iter; } #endif |