From d901a3aab109520102ccb5d694de6d2c90c7d82c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 26 Nov 2021 10:03:57 -0800 Subject: [PATCH] SparseMatrix_import_matrix_market: remove unnecessary casts of 'val' --- cmd/tools/matrix_market.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tools/matrix_market.c b/cmd/tools/matrix_market.c index 1b8ad43c3..4a8172333 100644 --- a/cmd/tools/matrix_market.c +++ b/cmd/tools/matrix_market.c @@ -146,7 +146,7 @@ SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format) } else { assert(!mm_is_hermitian(matcode)); } - vp = (void *) val; + vp = val; break; case MATRIX_TYPE_INTEGER: vali = malloc(nz * sizeof(int)); @@ -181,7 +181,7 @@ SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format) } else { assert(!mm_is_hermitian(matcode)); } - vp = (void *) vali; + vp = vali; break; case MATRIX_TYPE_PATTERN: for (i = 0; i < nz; i++) { @@ -255,7 +255,7 @@ SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format) } } } - vp = (void *) val; + vp = val; break; default: return 0; -- 2.40.0