shithub: riscv

Download patch

ref: b86472772300dd87bdfc1dd51a58ec14eae34e43
parent: 585ab698ded2348fb1fcb37227fba636413f74d4
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));