From: Matthew Fernandez Date: Thu, 29 Dec 2022 19:15:27 +0000 (-0800) Subject: sparse get_mq: remove unnecessary cast X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b219f51a58648ac3aa933dfde200b8eacb848c4b;p=graphviz sparse get_mq: remove unnecessary cast --- diff --git a/lib/sparse/mq.c b/lib/sparse/mq.c index e97289d37..6c063ba9d 100644 --- a/lib/sparse/mq.c +++ b/lib/sparse/mq.c @@ -82,7 +82,7 @@ static double get_mq(SparseMatrix A, int *assignment, int *ncluster0, double *mq assert(SparseMatrix_is_symmetric(A, test_pattern_symmetry_only)); assert(A->n == n); - if (A->type == MATRIX_TYPE_REAL) a = (double*) A->a; + if (A->type == MATRIX_TYPE_REAL) a = A->a; counts = CALLOC(n, sizeof(int));