From 4f959600b6cce4334367e7748e87a2a0ec42ab29 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 20 Apr 2006 21:01:48 +0000 Subject: minor bug fixes (mechiel lukkien, andrey) --- src/cmd/venti/srv/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/venti/srv/graph.c') 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); -- cgit v1.2.3