Add some band-aid casts to quiet warnings. This driver still assumes

that sizeof(int) == sizeof(void *) == 4.  However, it also seems that the
hardware assumes this.
This commit is contained in:
John Baldwin 2002-11-06 20:34:38 +00:00
parent cb27d4c7cd
commit f37f15337d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106521

View File

@ -119,7 +119,7 @@ static __inline struct bt_ccb *
btccbptov(struct bt_softc *bt, u_int32_t ccb_addr)
{
return (bt->bt_ccb_array +
((struct bt_ccb*)ccb_addr-(struct bt_ccb*)bt->bt_ccb_physbase));
((struct bt_ccb*)(uintptr_t)ccb_addr - (struct bt_ccb*)(uintptr_t)bt->bt_ccb_physbase));
}
static __inline u_int32_t