From: Matthew Fernandez Date: Thu, 8 Sep 2022 00:27:49 +0000 (-0700) Subject: dotgen adjustregularpath: remove unnecessary use of comma operator X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4dca2ac15f7cfe14de0790490c2625b0668e76a4;p=graphviz dotgen adjustregularpath: remove unnecessary use of comma operator --- diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index de3b47652..fcc0dfc87 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -2228,12 +2228,14 @@ static void adjustregularpath(path * P, int fb, int lb) if ((i - fb) % 2 == 0) { if (bp1->LL.x >= bp1->UR.x) { double x = (bp1->LL.x + bp1->UR.x) / 2; - bp1->LL.x = x - HALFMINW, bp1->UR.x = x + HALFMINW; + bp1->LL.x = x - HALFMINW; + bp1->UR.x = x + HALFMINW; } } else { if (bp1->LL.x + MINW > bp1->UR.x) { double x = (bp1->LL.x + bp1->UR.x) / 2; - bp1->LL.x = x - HALFMINW, bp1->UR.x = x + HALFMINW; + bp1->LL.x = x - HALFMINW; + bp1->UR.x = x + HALFMINW; } } }