]> granicus.if.org Git - graphviz/commitdiff
mm2gv: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 8 Apr 2022 02:26:24 +0000 (19:26 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 1 May 2022 00:26:32 +0000 (17:26 -0700)
cmd/tools/mm2gv.c

index f184659ffc3952fbcb5ecfb344ad8b42bae3b872..92029900366da10707e10ab79786348e8078886e 100644 (file)
@@ -85,7 +85,7 @@ static Agraph_t *makeDotGraph(SparseMatrix A, char *name, int dim,
     Agsym_t *sym = NULL, *sym2 = NULL, *sym3 = NULL;
     int *ia = A->ia;
     int *ja = A->ja;
-    double *val = (double *) (A->a);
+    double *val = A->a;
     Agnode_t **arr = N_NEW(A->m, Agnode_t *);
     double *color = NULL;
     char cstring[8];