Cast a pointer to a uintptr_t instead of a u_int.

This commit is contained in:
John Baldwin 2002-11-07 22:21:10 +00:00
parent 148aade5cb
commit 2fc606e29c

View File

@ -977,7 +977,7 @@ my_attach(device_t dev)
goto fail;
}
sc->my_ldata = (struct my_list_data *) sc->my_ldata_ptr;
round = (unsigned int)sc->my_ldata_ptr & 0xF;
round = (uintptr_t)sc->my_ldata_ptr & 0xF;
roundptr = sc->my_ldata_ptr;
for (i = 0; i < 8; i++) {
if (round % 8) {