From b86472772300dd87bdfc1dd51a58ec14eae34e43 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 2 Sep 2014 16:20:43 +0200 Subject: ether8139: fix pointer to smaller int tuncation warning on amd64 --- sys/src/9/pc/ether8139.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3