From e6b0276e7d05a843e2a4d1ae231aebd6ebe09d0e Mon Sep 17 00:00:00 2001 From: wkj Date: Mon, 6 Nov 2006 05:43:31 +0000 Subject: Placate GCC in 64-bit targets. --- src/cmd/venti/srv/buildindex.c | 2 +- src/cmd/venti/srv/graph.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c index b6866daf..275d4fc9 100644 --- a/src/cmd/venti/srv/buildindex.c +++ b/src/cmd/venti/srv/buildindex.c @@ -441,7 +441,7 @@ mkipool(ISect *isect, Minibuf *mbuf, u32int nmbuf, 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 9c906ad7..7a1ca2c8 100644 --- a/src/cmd/venti/srv/graph.c +++ b/src/cmd/venti/srv/graph.c @@ -125,7 +125,7 @@ statgraph(Graph *g) 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); -- cgit v1.2.3