Placate GCC in 64-bit targets.

This commit is contained in:
wkj 2006-11-06 05:43:31 +00:00
parent 5c8a75d284
commit e6b0276e7d
2 changed files with 2 additions and 2 deletions

View file

@ -441,7 +441,7 @@ mkipool(ISect *isect, Minibuf *mbuf, u32int nmbuf,
p->nmbuf = nmbuf; p->nmbuf = nmbuf;
p->mbuf = mbuf; p->mbuf = mbuf;
data = (uchar*)(p->mcount+nmbuf); data = (uchar*)(p->mcount+nmbuf);
data += bufsize - (u32int)data%bufsize; data += bufsize - (uintptr)data%bufsize;
p->rbuf = data; p->rbuf = data;
p->wbuf = data+bufsize; p->wbuf = data+bufsize;
p->epbuf = bufsize/IEntrySize; p->epbuf = bufsize/IEntrySize;

View file

@ -125,7 +125,7 @@ statgraph(Graph *g)
if(g->wid > nelem(bin)) if(g->wid > nelem(bin))
g->wid = nelem(bin); g->wid = nelem(bin);
if(g->fill < 0) 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)) if(g->fill > nelem(lofill))
g->fill %= nelem(lofill); g->fill %= nelem(lofill);