From cc2d5881054878c8cc9146b777313aef92ff0e2c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 22 Feb 2022 08:14:28 -0800 Subject: [PATCH] pathplan connecttris: [nfc] remove unnecessary use of the comma operator --- lib/pathplan/shortest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pathplan/shortest.c b/lib/pathplan/shortest.c index d2bc7a10e..ec20b63b8 100644 --- a/lib/pathplan/shortest.c +++ b/lib/pathplan/shortest.c @@ -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 && -- 2.50.1