Cast pointers to uintptr_t rather than u_int32_t. This doesn't work too

well on machines with 64 bit pointers.
This commit is contained in:
Peter Wemm 2002-03-19 23:28:35 +00:00
parent 41d0e15f86
commit 1a8f253b64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92734
2 changed files with 2 additions and 2 deletions

View File

@ -780,7 +780,7 @@ epic_common_attach(sc)
/* Align pool on PAGE_SIZE */
pool = (caddr_t)sc->pool;
pool = (caddr_t)((u_int32_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
pool = (caddr_t)((uintptr_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
/* Distribute memory */
sc->tx_flist = (void *)pool;

View File

@ -780,7 +780,7 @@ epic_common_attach(sc)
/* Align pool on PAGE_SIZE */
pool = (caddr_t)sc->pool;
pool = (caddr_t)((u_int32_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
pool = (caddr_t)((uintptr_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
/* Distribute memory */
sc->tx_flist = (void *)pool;