]> granicus.if.org Git - graphviz/commitdiff
dotgen edgecmp: 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:16 +0000 (21:51 -0700)
lib/dotgen/dotsplines.c

index eb5e089e83c5dde7d4cda9c09d82428d84764060..84087d4d19b6d29d8a99f2f7b7632fb1978823fc 100644 (file)
@@ -654,8 +654,8 @@ static int edgecmp(edge_t** ptr0, edge_t** ptr1)
 
     fwdedgea.out.base.data = (Agrec_t*)&fwdedgeai;
     fwdedgeb.out.base.data = (Agrec_t*)&fwdedgebi;
-    e0 = (edge_t *) * ptr0;
-    e1 = (edge_t *) * ptr1;
+    e0 = *ptr0;
+    e1 = *ptr1;
     et0 = ED_tree_index(e0) & EDGETYPEMASK;
     et1 = ED_tree_index(e1) & EDGETYPEMASK;
     if (et0 != et1)