From: Matthew Fernandez Date: Sat, 30 Jul 2022 00:39:34 +0000 (-0700) Subject: sfdpgen: remove unnecessary casts of 'Operator.data' pointers X-Git-Tag: 5.0.1~22^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7386dc5eb9a47c32f45a199a019051f541569398;p=graphviz sfdpgen: remove unnecessary casts of 'Operator.data' pointers --- 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; }