Fix some warnings on 64 bit platforms.

This commit is contained in:
Peter Wemm 2001-11-17 00:42:02 +00:00
parent 4584bbf555
commit 1b27b1ad08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86476

View File

@ -51,7 +51,10 @@ static __inline
struct mtx *
_mtx_pool_find(void *ptr)
{
return(&mtx_pool_ary[((int)ptr ^ ((int)ptr >> 6)) & MTX_POOL_MASK]);
uintptr_t p;
p = (uintptr_t)ptr;
return(&mtx_pool_ary[(p ^ (p >> 6)) & MTX_POOL_MASK]);
}
static void