]> granicus.if.org Git - graphviz/commitdiff
fdpAdjust: remove some unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 10 Sep 2021 01:06:14 +0000 (18:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 16 Sep 2021 02:57:25 +0000 (19:57 -0700)
lib/neatogen/adjust.c

index b2013de37a54468c6a7573ceb304861672b165dd..364c269215ca19164b51f7677fa2f6dbe9c941c1 100644 (file)
@@ -764,7 +764,7 @@ fdpAdjust (graph_t* g, adjust_data* am)
                   ELSCHEME_NONE, 0, NULL, NULL, mapBool (agget(g, "overlap_shrink"), TRUE));
 
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
-       real *npos = pos + (Ndim * ND_id(n));
+       real *npos = pos + Ndim * ND_id(n);
        for (i = 0; i < Ndim; i++) {
            ND_pos(n)[i] = npos[i];
        }