From 740ef849875872a7187470fb675339ba42de932f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 19 Nov 2022 16:21:32 -0800 Subject: [PATCH] neatogen rePos: use a clearer iteration idiom --- lib/neatogen/adjust.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.40.0