mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
548240cb40
commit
8719c03b55
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user