From: Matthew Fernandez Date: Mon, 23 May 2022 14:41:08 +0000 (-0700) Subject: sparse: remove unnecessary casts in 'SparseMatrix_sum_repeat_entries' X-Git-Tag: 6.0.1~27^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e47d12f532d27541850677822306658e7b5e60d6;p=graphviz sparse: remove unnecessary casts in 'SparseMatrix_sum_repeat_entries' --- diff --git a/lib/sparse/SparseMatrix.c b/lib/sparse/SparseMatrix.c index 054d11fac..3ba6852c6 100644 --- a/lib/sparse/SparseMatrix.c +++ b/lib/sparse/SparseMatrix.c @@ -1360,7 +1360,7 @@ SparseMatrix SparseMatrix_sum_repeat_entries(SparseMatrix A){ switch (type){ case MATRIX_TYPE_REAL: { - double *a = (double*) A->a; + double *a = A->a; nz = 0; sta = ia[0]; for (i = 0; i < A->m; i++){ @@ -1381,7 +1381,7 @@ SparseMatrix SparseMatrix_sum_repeat_entries(SparseMatrix A){ break; case MATRIX_TYPE_COMPLEX: { - double *a = (double*) A->a; + double *a = A->a; nz = 0; sta = ia[0]; for (i = 0; i < A->m; i++) { @@ -1404,7 +1404,7 @@ SparseMatrix SparseMatrix_sum_repeat_entries(SparseMatrix A){ break; case MATRIX_TYPE_INTEGER: { - int *a = (int*) A->a; + int *a = A->a; nz = 0; sta = ia[0]; for (i = 0; i < A->m; i++){