Placate GCC in 64-bit targets.
diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c
index b6866da..275d4fc 100644
--- a/src/cmd/venti/srv/buildindex.c
+++ b/src/cmd/venti/srv/buildindex.c
@@ -441,7 +441,7 @@
 	p->nmbuf = nmbuf;
 	p->mbuf = mbuf;
 	data = (uchar*)(p->mcount+nmbuf);
-	data += bufsize - (u32int)data%bufsize;
+	data += bufsize - (uintptr)data%bufsize;
 	p->rbuf = data;
 	p->wbuf = data+bufsize;
 	p->epbuf = bufsize/IEntrySize;
diff --git a/src/cmd/venti/srv/graph.c b/src/cmd/venti/srv/graph.c
index 9c906ad..7a1ca2c 100644
--- a/src/cmd/venti/srv/graph.c
+++ b/src/cmd/venti/srv/graph.c
@@ -125,7 +125,7 @@
 	if(g->wid > nelem(bin))
 		g->wid = nelem(bin);
 	if(g->fill < 0)
-		g->fill = ((uint)g->arg>>8)%nelem(lofill);
+		g->fill = ((uint)(uintptr)g->arg>>8)%nelem(lofill);
 	if(g->fill > nelem(lofill))
 		g->fill %= nelem(lofill);