]> granicus.if.org Git - graphviz/commitdiff
pathplan connecttris: [nfc] remove unnecessary use of the comma operator
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 22 Feb 2022 16:14:28 +0000 (08:14 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 24 Feb 2022 07:09:12 +0000 (23:09 -0800)
lib/pathplan/shortest.c

index d2bc7a10e5307ebcec7937bece9ece70bd4ede53..ec20b63b844cfee295efefb3f0390c05b48608ce 100644 (file)
@@ -378,7 +378,8 @@ static void connecttris(int tri1, int tri2)
 
     for (ei = 0; ei < 3; ei++) {
        for (ej = 0; ej < 3; ej++) {
-           tri1p = &tris[tri1], tri2p = &tris[tri2];
+           tri1p = &tris[tri1];
+           tri2p = &tris[tri2];
            if ((tri1p->e[ei].pnl0p->pp == tri2p->e[ej].pnl0p->pp &&
                 tri1p->e[ei].pnl1p->pp == tri2p->e[ej].pnl1p->pp) ||
                (tri1p->e[ei].pnl0p->pp == tri2p->e[ej].pnl1p->pp &&