]> granicus.if.org Git - graphviz/commitdiff
neatogen OverlapSmoother_new: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Dec 2022 19:14:55 +0000 (11:14 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 30 Dec 2022 06:46:14 +0000 (22:46 -0800)
lib/neatogen/overlap.c

index 85d1aad9cb81452496d0f52214d2615b919d5fe3..89728396766768a4d1f6b2254c2945e0e55092cb 100644 (file)
@@ -420,7 +420,7 @@ OverlapSmoother OverlapSmoother_new(SparseMatrix A, int m,
 
   assert((sm->Lwd)->type == MATRIX_TYPE_REAL);
   
-  ideal_distance_avoid_overlap(dim, sm->Lwd, x, width, (double*) (sm->Lwd->a), max_overlap, min_overlap);
+  ideal_distance_avoid_overlap(dim, sm->Lwd, x, width, sm->Lwd->a, max_overlap, min_overlap);
 
   /* no overlap at all! */
   if (*max_overlap < 1 && shrink){
@@ -435,7 +435,8 @@ OverlapSmoother OverlapSmoother_new(SparseMatrix A, int m,
   }
 
   iw = sm->Lw->ia; jw = sm->Lw->ja;
-  w = (double*) sm->Lw->a; d = (double*) sm->Lwd->a;
+  w = sm->Lw->a;
+  d = sm->Lwd->a;
 
   for (i = 0; i < m; i++){
     diag_d = diag_w = 0;