ether8139: fix pointer to smaller int tuncation warning on amd64
This commit is contained in:
parent
585ab698de
commit
b864727723
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ rtl8139txstart(Ether* edev)
|
|||
size = BLEN(bp);
|
||||
|
||||
td = &ctlr->td[ctlr->tdh];
|
||||
if(((int)bp->rp) & 0x03){
|
||||
if(((uintptr)bp->rp) & 0x03){
|
||||
memmove(td->data, bp->rp, size);
|
||||
freeb(bp);
|
||||
csr32w(ctlr, td->tsad, PCIWADDR(td->data));
|
||||
|
|
Loading…
Reference in a new issue