]> granicus.if.org Git - graphviz/commitdiff
bend: [nfc] remove unnecessary parens
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 05:49:31 +0000 (21:49 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 05:49:31 +0000 (21:49 -0800)
lib/common/routespl.c

index bfebb9f59cfd728e8dee070becf55e966602cb77..dc612342c36a4aba6ecd4bc911941093d2f1be51 100644 (file)
@@ -1071,8 +1071,8 @@ static void bend(pointf spl[4], pointf centroid)
 
     midpt.x = (spl[0].x + spl[3].x)/2.0;
     midpt.y = (spl[0].y + spl[3].y)/2.0;
-    dx = (spl[3].x - spl[0].x);
-    dy = (spl[3].y - spl[0].y);
+    dx = spl[3].x - spl[0].x;
+    dy = spl[3].y - spl[0].y;
     dist = hypot(dx, dy);
     r = dist/5.0;
     {