summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-05-14 21:43:04 +0000
committerwtc%netscape.com <devnull@localhost>2003-05-14 21:43:04 +0000
commit115be0bf71d7f107b3e82ac84f8d66732f146587 (patch)
tree3bbe858ea5cb784b1680b96ce3bae11e64dacb78
parent4beb8b7fbee78ffe9a40c66a7602646bc352b906 (diff)
downloadnspr-hg-115be0bf71d7f107b3e82ac84f8d66732f146587.tar.gz
Bug 200335: need to cast pthread_t (which could be a pointer) to an
unsigned type (PRUptrdiff). The patch is contributed by Nelson Bolyard. (This code path is not used by Mozilla.) Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/src/malloc/prmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/malloc/prmem.c b/pr/src/malloc/prmem.c
index c3870ec7..ef8fdc74 100644
--- a/pr/src/malloc/prmem.c
+++ b/pr/src/malloc/prmem.c
@@ -233,7 +233,7 @@ pr_ZoneMalloc(PRUint32 size)
}
if (zone < MEM_ZONES) {
pthread_t me = pthread_self();
- unsigned int pool = (ptrdiff_t)me % THREAD_POOLS;
+ unsigned int pool = (PRUptrdiff)me % THREAD_POOLS;
PRUint32 wasLocked;
mz = &zones[zone][pool];
wasLocked = mz->locked;