tstupid port bug. cannot use %ld to print a long as a *CHARACTER* - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 77dcf88474c55e040940be8a5f9e7fa1537af564 (DIR) parent 0d0bad2ee42789a7962709d53de9d2ee5c729af7 (HTM) 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: M src/cmd/troff/t10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/src/cmd/troff/t10.c b/src/cmd/troff/t10.c t@@ -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) {