aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-11-03 14:27:30 +0000
committerrsc <devnull@localhost>2004-11-03 14:27:30 +0000
commit77dcf88474c55e040940be8a5f9e7fa1537af564 (patch)
tree9b1a0fa14a565f536169eb5c5fb5b3b457e8ea90 /src/cmd/troff
parent0d0bad2ee42789a7962709d53de9d2ee5c729af7 (diff)
downloadplan9port-77dcf88474c55e040940be8a5f9e7fa1537af564.tar.gz
plan9port-77dcf88474c55e040940be8a5f9e7fa1537af564.tar.bz2
plan9port-77dcf88474c55e040940be8a5f9e7fa1537af564.zip
stupid port bug. cannot use %ld to print a long as a *CHARACTER*
Diffstat (limited to 'src/cmd/troff')
-rw-r--r--src/cmd/troff/t10.c2
1 files changed, 1 insertions, 1 deletions
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) {