tPlacate GCC in 64-bit targets. - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e6b0276e7d05a843e2a4d1ae231aebd6ebe09d0e
(DIR) parent 5c8a75d284256c030d7c3914609f285fab8ec4dd
(HTM) Author: wkj <devnull@localhost>
Date: Mon, 6 Nov 2006 05:43:31 +0000
Placate GCC in 64-bit targets.
Diffstat:
M src/cmd/venti/srv/buildindex.c | 2 +-
M src/cmd/venti/srv/graph.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c
t@@ -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;
(DIR) diff --git a/src/cmd/venti/srv/graph.c b/src/cmd/venti/srv/graph.c
t@@ -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);