From 7386dc5eb9a47c32f45a199a019051f541569398 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 29 Jul 2022 17:39:34 -0700 Subject: [PATCH] sfdpgen: remove unnecessary casts of 'Operator.data' pointers --- lib/sfdpgen/sparse_solve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sfdpgen/sparse_solve.c b/lib/sfdpgen/sparse_solve.c index e7a1a83b2..f2719289b 100644 --- a/lib/sfdpgen/sparse_solve.c +++ b/lib/sfdpgen/sparse_solve.c @@ -26,7 +26,7 @@ struct uniform_stress_matmul_data{ }; static double *Operator_uniform_stress_matmul_apply(Operator o, double *x, double *y){ - struct uniform_stress_matmul_data *d = (struct uniform_stress_matmul_data*) (o->data); + struct uniform_stress_matmul_data *d = o->data; SparseMatrix A = d->A; double alpha = d->alpha; double xsum = 0.; @@ -58,7 +58,7 @@ Operator Operator_uniform_stress_matmul(SparseMatrix A, double alpha){ static double *Operator_matmul_apply(Operator o, double *x, double *y){ - SparseMatrix A = (SparseMatrix) o->data; + SparseMatrix A = o->data; SparseMatrix_multiply_vector(A, x, &y); return y; } -- 2.40.0