]> granicus.if.org Git - graphviz/commitdiff
forfunc: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 30 Aug 2021 00:17:39 +0000 (17:17 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:28:20 +0000 (19:28 -0700)
lib/common/emit.c

index bbff583570c3cf66781cd701f74f318f6309a6ca..f443747a891480c3307e860e25767ca01d81308f 100644 (file)
@@ -2207,7 +2207,7 @@ typedef double (*radfunc_t)(double,double,double);
 
 static double forfunc (double curlen, double totallen, double initwid)
 {
-    return ((1 - (curlen/totallen))*initwid/2.0);
+    return (1 - curlen / totallen) * initwid / 2.0;
 }
 
 static double revfunc (double curlen, double totallen, double initwid)