From: Matthew Fernandez Date: Thu, 29 Dec 2022 19:10:18 +0000 (-0800) Subject: gvmap get_polygon_solids: remove unnecessary casts X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76872b4ae57f984ec7a3c902c04a9af177ec0f7d;p=graphviz gvmap get_polygon_solids: remove unnecessary casts --- diff --git a/cmd/gvmap/make_map.c b/cmd/gvmap/make_map.c index e92e3e375..ac0d1d02e 100644 --- a/cmd/gvmap/make_map.c +++ b/cmd/gvmap/make_map.c @@ -702,7 +702,7 @@ static void get_polygon_solids(int nt, SparseMatrix E, int ncomps, int *comps_pt numbered as e1 and e2. Likewise from v to u there are also two edges e1 and e2. */ - int n = E->m, *ie = E->ia, *je = E->ja, *e = (int*) E->a, ne, i, j, t1, t2, jj, ii; + int n = E->m, *ie = E->ia, *je = E->ja, *e = E->a, ne, i, j, t1, t2, jj, ii; int *cycle, cycle_head = 0;/* a list of edges that form a cycle that describe the polygon. cycle[e][0] gives the prev edge in the cycle from e, cycle[e][1] gives the next edge */ @@ -763,7 +763,7 @@ static void get_polygon_solids(int nt, SparseMatrix E, int ncomps, int *comps_pt ie = half_edges->ia; je = half_edges->ja; - e = (int*) half_edges->a; + e = half_edges->a; elist = gv_calloc(nt * 3, sizeof(int)); for (i = 0; i < nt; i++) elist[i*edim + 2] = 0;