]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary cast in Operator_matmul_new
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 23:08:33 +0000 (16:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Jul 2021 17:45:45 +0000 (10:45 -0700)
A SparseMatrix implicitly coerces to void*.

lib/sfdpgen/sparse_solve.c

index dbe1873a9b422b65105a3c9c4c818024bd488d30..09949fe2e48fe00104e5d2c3d72f765d9b2ed116 100644 (file)
@@ -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;
 }