commit 77dcf88474c55e040940be8a5f9e7fa1537af564
parent 0d0bad2ee42789a7962709d53de9d2ee5c729af7
Author: rsc <devnull@localhost>
Date: Wed, 3 Nov 2004 14:27:30 +0000
stupid port bug. cannot use %ld to print a long as a *CHARACTER*
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {