From: Matthew Fernandez Date: Fri, 10 Sep 2021 01:01:58 +0000 (-0700) Subject: newpos: abbreviate some accumulation X-Git-Tag: 2.49.1~20^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2dd8f067f7e03cb425114432db06660a3f80fce;p=graphviz newpos: abbreviate some accumulation --- 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; }