From 8719c03b5595ea453ced8df2c934795f6c87a3cf Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Fri, 11 Apr 2003 03:38:24 +0000 Subject: [PATCH] Bug 200335: need to cast pthread_t (which could be a pointer) to an unsigned type (PRUptrdiff). The patch is contributed by Nelson Bolyard. --- nsprpub/pr/src/malloc/prmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsprpub/pr/src/malloc/prmem.c b/nsprpub/pr/src/malloc/prmem.c index c3870ec7d777..ef8fdc74e9d9 100644 --- a/nsprpub/pr/src/malloc/prmem.c +++ b/nsprpub/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;