]> granicus.if.org Git - graphviz/commitdiff
Fix type error in debug code
authorerg <devnull@localhost>
Thu, 8 Nov 2007 17:35:23 +0000 (17:35 +0000)
committererg <devnull@localhost>
Thu, 8 Nov 2007 17:35:23 +0000 (17:35 +0000)
lib/common/emit.c

index 2d46ea9a80e3b110b255d0b8c63674a2eac5dfdb..45ed9ae0e8e662ccddbc353fec17702eaf7231d4 100644 (file)
@@ -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