aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti/srv/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/venti/srv/graph.c')
-rw-r--r--src/cmd/venti/srv/graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/venti/srv/graph.c b/src/cmd/venti/srv/graph.c
index 8b28c237..647c74b2 100644
--- a/src/cmd/venti/srv/graph.c
+++ b/src/cmd/venti/srv/graph.c
@@ -121,7 +121,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);