From: Matthew Fernandez Date: Sat, 26 Jun 2021 23:08:33 +0000 (-0700) Subject: remove unnecessary cast in Operator_matmul_new X-Git-Tag: 2.49.0~63^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f08a98927a6ff2e2f41283d14602968cff8f9e54;p=graphviz remove unnecessary cast in Operator_matmul_new A SparseMatrix implicitly coerces to void*. --- diff --git a/lib/sfdpgen/sparse_solve.c b/lib/sfdpgen/sparse_solve.c index dbe1873a9..09949fe2e 100644 --- a/lib/sfdpgen/sparse_solve.c +++ b/lib/sfdpgen/sparse_solve.c @@ -68,7 +68,7 @@ static Operator Operator_matmul_new(SparseMatrix A){ Operator o; o = GNEW(struct Operator_struct); - o->data = (void*) A; + o->data = A; o->Operator_apply = Operator_matmul_apply; return o; }