]> granicus.if.org Git - graphviz/commitdiff
_routesplines: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 02:30:07 +0000 (19:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Jun 2021 02:32:59 +0000 (19:32 -0700)
pp->data is a void*, which implicitly coerces to a edge_t*.

lib/common/routespl.c

index da70501a907f026de0f927715ca7e92f47c5d974..4faac103ec7dc4522a2f22213eb7f0e12d7ab04e 100644 (file)
@@ -380,7 +380,7 @@ static pointf *_routesplines(path * pp, int *npoints, int polyline)
     nedges++;
     nboxes += pp->nbox;
 
-    for (realedge = (edge_t *) pp->data;
+    for (realedge = pp->data;
         realedge && ED_edge_type(realedge) != NORMAL;
         realedge = ED_to_orig(realedge));
     if (!realedge) {