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 commit is contained in:
wtc%netscape.com 2003-04-11 03:38:24 +00:00
parent 548240cb40
commit 8719c03b55

View File

@ -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;