ether8139: fix pointer to smaller int tuncation warning on amd64

This commit is contained in:
cinap_lenrek 2014-09-02 16:20:43 +02:00
parent 585ab698de
commit b864727723

View file

@ -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));