From 77dcf88474c55e040940be8a5f9e7fa1537af564 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 3 Nov 2004 14:27:30 +0000 Subject: stupid port bug. cannot use %ld to print a long as a *CHARACTER* --- src/cmd/troff/t10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd/troff/t10.c b/src/cmd/troff/t10.c index 0022cc79..38090eac 100644 --- a/src/cmd/troff/t10.c +++ b/src/cmd/troff/t10.c @@ -301,7 +301,7 @@ int ptout0(Tchar *pi) pi[1] = '~'; case DRAWSPLINE: /* spline */ default: /* something else; copy it like spline */ - OUT "D%ld %d %d", cbits(pi[1]), dx, dy PUT; + OUT "D%c %d %d", (char)cbits(pi[1]), dx, dy PUT; hpos += dx; vpos += dy; if (cbits(pi[3]) == DRAWFCN || cbits(pi[4]) == DRAWFCN) { -- cgit v1.2.3