From 772afbe98c7e74be35e7e5318967ce594e4d93e8 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 7 Jan 2016 04:44:13 +0100 Subject: format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64) --- sys/src/cmd/plot/plot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/cmd/plot/plot.c') diff --git a/sys/src/cmd/plot/plot.c b/sys/src/cmd/plot/plot.c index a7341c4e4..591efe96b 100644 --- a/sys/src/cmd/plot/plot.c +++ b/sys/src/cmd/plot/plot.c @@ -564,7 +564,7 @@ process(Biobuf *fd){ case TEXT: strarg(); text(argstr); pplots=0; break; case VEC: numargs(2); vec(x[0], x[1]); break; default: - sysfatal("%s:%d: plot: missing case %ld\n", fsp->name, fsp->lineno, pplots-plots); + sysfatal("%s:%d: plot: missing case %zd\n", fsp->name, fsp->lineno, pplots-plots); } } return 1; -- cgit v1.2.3