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:
jhb 2002-11-06 20:34:38 +00:00
parent a956a28e35
commit 5f80d8bbe2

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