]> granicus.if.org Git - graphviz/commitdiff
sparse get_or_alloc_force_qt: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Dec 2022 21:47:09 +0000 (13:47 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 31 Dec 2022 16:33:58 +0000 (08:33 -0800)
lib/sparse/QuadTree.c

index bf3fed0fd11c617efbb6e67f1688a1dd07e8b4ba..4c5367063f8ee548fb21c6420180c7af9e92725d 100644 (file)
@@ -149,10 +149,10 @@ static double *get_or_assign_node_force(double *force, int i, SingleLinkedList l
 }
 static double *get_or_alloc_force_qt(QuadTree qt, int dim){
   int i;
-  double *force = (double*) qt->data;
+  double *force = qt->data;
   if (!force){
     qt->data = MALLOC(sizeof(double)*dim);
-    force = (double*) qt->data;
+    force = qt->data;
     for (i = 0; i < dim; i++) force[i] = 0.;
   }
   return force;