From b219f51a58648ac3aa933dfde200b8eacb848c4b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 29 Dec 2022 11:15:27 -0800 Subject: [PATCH] sparse get_mq: remove unnecessary cast --- lib/sparse/mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.50.1