From: Matthew Fernandez Date: Sun, 20 Nov 2022 00:21:32 +0000 (-0800) Subject: neatogen rePos: use a clearer iteration idiom X-Git-Tag: 7.0.3~1^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=740ef849875872a7187470fb675339ba42de932f;p=graphviz neatogen rePos: use a clearer iteration idiom --- diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 910518230..f4c99b654 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -537,13 +537,12 @@ static int vAdjust(void) static double rePos(void) { - Info_t *ip = nodeInfo; double f = 1.0 + incr; for (size_t i = 0; i < nsites; i++) { + Info_t *ip = &nodeInfo[i]; ip->site.coord.x *= f; ip->site.coord.y *= f; - ip++; } return f; }