From: erg Date: Thu, 8 Nov 2007 17:35:23 +0000 (+0000) Subject: Fix type error in debug code X-Git-Tag: LAST_LIBGRAPH~32^2~5055 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f393783a73140604bb1057ef6a4e24a10ec19d9;p=graphviz Fix type error in debug code --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 2d46ea9a8..45ed9ae0e 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -288,12 +288,12 @@ static int check_control_points(pointf *cp) } #ifdef DEBUG -static void psmapOutput (point* ps, int n) +static void psmapOutput (pointf* ps, int n) { int i; - fprintf (stdout, "newpath %d %d moveto\n", ps[0].x, ps[0].y); + fprintf (stdout, "newpath %f %f moveto\n", ps[0].x, ps[0].y); for (i=1; i < n; i++) - fprintf (stdout, "%d %d lineto\n", ps[i].x, ps[i].y); + fprintf (stdout, "%f %f lineto\n", ps[i].x, ps[i].y); fprintf (stdout, "closepath stroke\n"); } #endif