commit e6b0276e7d05a843e2a4d1ae231aebd6ebe09d0e from: wkj date: Mon Nov 06 05:43:31 2006 UTC Placate GCC in 64-bit targets. commit - 5c8a75d284256c030d7c3914609f285fab8ec4dd commit + e6b0276e7d05a843e2a4d1ae231aebd6ebe09d0e blob - b6866daf3072ebbd69681b24ccf30326bdd90d03 blob + 275d4fc91130eca836cd0615ba5fd68313d8136f --- src/cmd/venti/srv/buildindex.c +++ 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; blob - 9c906ad739af5babbd43d93e8587a6211a2fb0d1 blob + 7a1ca2c836066ad56d884221f17b777b7f5f7f1f --- src/cmd/venti/srv/graph.c +++ 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);