Don't cast a pointer to an int that isn't big enough.

This commit is contained in:
peter 2004-02-05 00:12:08 +00:00
parent 395c845892
commit 3cfeac5dfa

View File

@ -228,7 +228,7 @@ isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan)
panic("isa_dmastart: channel out of range");
if ((chan < 4 && nbytes > (1<<16))
|| (chan >= 4 && (nbytes > (1<<17) || (u_int)addr & 1)))
|| (chan >= 4 && (nbytes > (1<<17) || (uintptr_t)addr & 1)))
panic("isa_dmastart: impossible request");
if ((dma_inuse & (1 << chan)) == 0)