]> granicus.if.org Git - graphviz/commitdiff
sparse get_mq: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Dec 2022 19:15:27 +0000 (11:15 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 30 Dec 2022 06:46:14 +0000 (22:46 -0800)
lib/sparse/mq.c

index e97289d376dc4bcf8362f1f25dada88f4da091fd..6c063ba9d1dca3052716af37c961241134739d27 100644 (file)
@@ -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));