From: Matthew Fernandez Date: Sat, 4 Sep 2021 01:08:33 +0000 (-0700) Subject: sparse cmp: remove some unnecessary casts X-Git-Tag: 2.49.1~27^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4284ae1624610c722c7319c9544037a31654ed59;p=graphviz sparse cmp: remove some unnecessary casts These pointers coerce implicitly. --- diff --git a/lib/sparse/SparseMatrix.c b/lib/sparse/SparseMatrix.c index 51cfd41fd..9b72848e9 100644 --- a/lib/sparse/SparseMatrix.c +++ b/lib/sparse/SparseMatrix.c @@ -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; }