From: Matthew Fernandez Date: Sun, 4 Dec 2022 22:25:31 +0000 (-0800) Subject: osage layout: remove unnecessary casts X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96c2eb87cf2f7f9afe60adf4307089a10c4169b3;p=graphviz osage layout: remove unnecessary casts --- diff --git a/lib/osage/osageinit.c b/lib/osage/osageinit.c index 0c3ef0591..db9f36d9c 100644 --- a/lib/osage/osageinit.c +++ b/lib/osage/osageinit.c @@ -152,7 +152,7 @@ layout (Agraph_t* g, int depth) bb.UR.y += p.y; EXPANDBB(rootbb, bb); if (j < GD_n_cluster(g)) { - subg = (Agraph_t*)children[j]; + subg = children[j]; GD_bb(subg) = bb; if (Verbose > 1) { indent (depth); @@ -160,7 +160,7 @@ layout (Agraph_t* g, int depth) } } else { - n = (Agnode_t*)children[j]; + n = children[j]; ND_coord(n) = mid_pointf (bb.LL, bb.UR); if (Verbose > 1) { indent (depth); @@ -208,7 +208,7 @@ layout (Agraph_t* g, int depth) */ for (j = 0; j < total; j++) { if (j < GD_n_cluster(g)) { - subg = (Agraph_t*)children[j]; + subg = children[j]; bb = GD_bb(subg); bb.LL = sub_pointf(bb.LL, rootbb.LL); bb.UR = sub_pointf(bb.UR, rootbb.LL); @@ -219,7 +219,7 @@ layout (Agraph_t* g, int depth) } } else { - n = (Agnode_t*)children[j]; + n = children[j]; ND_coord(n) = sub_pointf (ND_coord(n), rootbb.LL); if (Verbose > 1) { indent (depth);