diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-09-02 16:20:43 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-09-02 16:20:43 +0200 |
commit | b86472772300dd87bdfc1dd51a58ec14eae34e43 (patch) | |
tree | 7cdec370d68121aa4b55c9c6f1346e9dd185dbbf | |
parent | 585ab698ded2348fb1fcb37227fba636413f74d4 (diff) | |
download | plan9front-b86472772300dd87bdfc1dd51a58ec14eae34e43.tar.xz |
ether8139: fix pointer to smaller int tuncation warning on amd64
-rw-r--r-- | sys/src/9/pc/ether8139.c | 2 |
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)); |