ref: 0b06afc5b231a98eea14a4f87e8eaa4fb59f3c1a
parent: dcdbaf79cb6c7e85d3355ae5032edb34e47153fa
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Sep 2 12:20:43 EDT 2014
ether8139: fix pointer to smaller int tuncation warning on amd64
--- a/sys/src/9/pc/ether8139.c
+++ b/sys/src/9/pc/ether8139.c
@@ -479,7 +479,7 @@
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));
--
⑨