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