From: Matthew Fernandez Date: Thu, 29 Dec 2022 19:14:55 +0000 (-0800) Subject: neatogen OverlapSmoother_new: remove unnecessary casts X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6227222f1663e3c5dae8caca9eec19e1e84286f8;p=graphviz neatogen OverlapSmoother_new: remove unnecessary casts --- diff --git a/lib/neatogen/overlap.c b/lib/neatogen/overlap.c index 85d1aad9c..897283967 100644 --- a/lib/neatogen/overlap.c +++ b/lib/neatogen/overlap.c @@ -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;