]> granicus.if.org Git - graphviz/commitdiff
sparse cmp: remove some unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 01:08:33 +0000 (18:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Sep 2021 15:34:12 +0000 (08:34 -0700)
These pointers coerce implicitly.

lib/sparse/SparseMatrix.c

index 51cfd41fd7dc0b654fc2b1a124683c87c4ad3ed0..9b72848e9ceb04ff935a4cfded99a32a89a2dd36 100644 (file)
@@ -2019,8 +2019,8 @@ typedef struct nodedata_struct* nodedata;
 static int cmp(void*i, void*j){
   nodedata d1, d2;
 
-  d1 = (nodedata) i;
-  d2 = (nodedata) j;
+  d1 = i;
+  d2 = j;
   if (d1->dist > d2->dist){
     return 1;
   }