diff options
author | peter <peter@FreeBSD.org> | 2001-11-17 00:42:02 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-11-17 00:42:02 +0000 |
commit | 9aa0c95a10ff61ac48036d86d38602ff8979486f (patch) | |
tree | f86797b8c4d298e13cd9b0f65828a7a0a0a3597b /sys | |
parent | 86ee7095b92eeb2d5ad9405bc3e1385692807a80 (diff) | |
download | FreeBSD-src-9aa0c95a10ff61ac48036d86d38602ff8979486f.zip FreeBSD-src-9aa0c95a10ff61ac48036d86d38602ff8979486f.tar.gz |
Fix some warnings on 64 bit platforms.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_mtxpool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_mtxpool.c b/sys/kern/kern_mtxpool.c index cc856bc..3267023 100644 --- a/sys/kern/kern_mtxpool.c +++ b/sys/kern/kern_mtxpool.c @@ -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 |