From d2dd8f067f7e03cb425114432db06660a3f80fce Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 9 Sep 2021 18:01:58 -0700 Subject: [PATCH] newpos: abbreviate some accumulation --- lib/neatogen/adjust.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 935eee634..f02760d92 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -403,9 +403,9 @@ static void newpos(Info_t * ip) while (q != NULL) { area = areaOf(anchor->p, p->p, q->p); centroidOf(anchor->p, p->p, q->p, &x, &y); - cx = cx + area * x; - cy = cy + area * y; - totalArea = totalArea + area; + cx += area * x; + cy += area * y; + totalArea += area; p = q; q = q->next; } -- 2.40.0