From: Matthew Fernandez Date: Sun, 20 Nov 2022 00:20:56 +0000 (-0800) Subject: neatogen newPos: use a clearer iteration idiom X-Git-Tag: 7.0.3~1^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4be4e0982ba357424bee84b4e047187fe43b992;p=graphviz neatogen newPos: use a clearer iteration idiom --- diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index c39d8309b..910518230 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -456,13 +456,11 @@ static void addCorners(void) */ static void newPos(void) { - Info_t *ip = nodeInfo; - addCorners(); for (size_t i = 0; i < nsites; i++) { + Info_t *ip = &nodeInfo[i]; if (doAll || ip->overlaps) newpos(ip); - ip++; } }