summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-09-02 16:20:43 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-09-02 16:20:43 +0200
commitb86472772300dd87bdfc1dd51a58ec14eae34e43 (patch)
tree7cdec370d68121aa4b55c9c6f1346e9dd185dbbf
parent585ab698ded2348fb1fcb37227fba636413f74d4 (diff)
downloadplan9front-b86472772300dd87bdfc1dd51a58ec14eae34e43.tar.xz
ether8139: fix pointer to smaller int tuncation warning on amd64
-rw-r--r--sys/src/9/pc/ether8139.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/ether8139.c b/sys/src/9/pc/ether8139.c
index f9596ac7d..258869d9e 100644
--- a/sys/src/9/pc/ether8139.c
+++ b/sys/src/9/pc/ether8139.c
@@ -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));