]> granicus.if.org Git - graphviz/commitdiff
dotgen edgelblcmpfn: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 8 Jul 2022 00:24:05 +0000 (17:24 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Jul 2022 04:51:17 +0000 (21:51 -0700)
lib/dotgen/dotsplines.c

index bf9213c096ef64e3feaaacc7147e073734aa8d4e..bc8de68841f4393afe8fffd7c441a29a310184e1 100644 (file)
@@ -1025,11 +1025,10 @@ transformf (pointf p, pointf del, int flip)
  */
 static int edgelblcmpfn(edge_t** ptr0, edge_t** ptr1)
 {
-    edge_t *e0, *e1;
     pointf sz0, sz1;
 
-    e0 = (edge_t *) * ptr0;
-    e1 = (edge_t *) * ptr1;
+    edge_t *e0 = *ptr0;
+    edge_t *e1 = *ptr1;
 
     if (ED_label(e0)) {
        if (ED_label(e1)) {