diff options
author | peter <peter@FreeBSD.org> | 2004-02-05 00:12:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-02-05 00:12:08 +0000 |
commit | ab0acdea92a661cb2ccc58aeb8d33357d65fa363 (patch) | |
tree | ce31ce0eebd73807a9e3e303cb1686a83ac59313 /sys | |
parent | 9e7adae9eefd260d9c9470d3b44b8f2dcc1c92f4 (diff) | |
download | FreeBSD-src-ab0acdea92a661cb2ccc58aeb8d33357d65fa363.zip FreeBSD-src-ab0acdea92a661cb2ccc58aeb8d33357d65fa363.tar.gz |
Don't cast a pointer to an int that isn't big enough.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/isa/isa_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/isa/isa_dma.c b/sys/amd64/isa/isa_dma.c index d8a13fd..bb13b60 100644 --- a/sys/amd64/isa/isa_dma.c +++ b/sys/amd64/isa/isa_dma.c @@ -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) |