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

This commit is contained in:
Peter Wemm 2004-02-05 00:12:08 +00:00
parent 46d9072b4a
commit 0765d4d608

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)