From: Matthew Fernandez Date: Sat, 30 Jul 2022 21:47:05 +0000 (-0700) Subject: neatogen printvis: remove unnecessary casts X-Git-Tag: 5.0.1~21^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=431049c7028ba88ff2c5123f7e50d0d9efb55970;p=graphviz neatogen printvis: remove unnecessary casts The type of the fields of `pts` can vary between `float` and `double` depending compile time options, which is what this code was attempting to deal with. But `float` and `double` are treated identically with respect to `printf`, so there is no need to cast. --- diff --git a/lib/neatogen/printvis.c b/lib/neatogen/printvis.c index 9d49ee629..d376cad7d 100644 --- a/lib/neatogen/printvis.c +++ b/lib/neatogen/printvis.c @@ -27,8 +27,7 @@ void printvis(vconfig_t * cp) printf("this next prev point\n"); for (i = 0; i < cp->N; i++) - printf("%3d %3d %3d (%f,%f)\n", i, next[i], prev[i], - (double) pts[i].x, (double) pts[i].y); + printf("%3d %3d %3d (%f,%f)\n", i, next[i], prev[i], pts[i].x, pts[i].y); printf("\n\n");