summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-04-11 03:38:24 +0000
committerwtc%netscape.com <devnull@localhost>2003-04-11 03:38:24 +0000
commit7e145ac9c2c2368a3ec0e3eee9a15b9538deeb3d (patch)
tree674ec0d6d78f935221c886be7ff298e5809fb3a6
parent46ea18e5e4d89fff1abae6bdb0d8a5ead07e267b (diff)
downloadnspr-hg-7e145ac9c2c2368a3ec0e3eee9a15b9538deeb3d.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.
-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;