mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Placate GCC in 64-bit targets.
This commit is contained in:
parent
5c8a75d284
commit
e6b0276e7d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue