From 6227222f1663e3c5dae8caca9eec19e1e84286f8 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 29 Dec 2022 11:14:55 -0800 Subject: [PATCH] neatogen OverlapSmoother_new: remove unnecessary casts --- lib/neatogen/overlap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.40.0