From: Matthew Fernandez Date: Sat, 26 Jun 2021 02:57:29 +0000 (-0700) Subject: condense some compound assignments X-Git-Tag: 2.48.0~25^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=881b6c91c684ebcc2b9242367c289a438295b5a7;p=graphviz condense some compound assignments --- diff --git a/lib/common/routespl.c b/lib/common/routespl.c index 7346af665..66016eff0 100644 --- a/lib/common/routespl.c +++ b/lib/common/routespl.c @@ -837,8 +837,8 @@ static pointf get_centroid(Agraph_t *g) sum.y += ND_pos(n)[1]; cnt++; } - sum.x = sum.x / cnt; - sum.y = sum.y / cnt; + sum.x /= cnt; + sum.y /= cnt; return sum; } @@ -1080,8 +1080,8 @@ static pointf get_cycle_centroid(graph_t *g, edge_t* edge) cnt++; } - sum.x = sum.x / cnt; - sum.y = sum.y / cnt; + sum.x /= cnt; + sum.y /= cnt; return sum; }